diff --git a/CHANGELOG.md b/CHANGELOG.md index d5bb1df1e6..dbf035a021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,78 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 2.73.0 - 2024-06-25 +### Added +- Support for Demand Signal service +- Support for external database connectors in the Database service +- Support for monitoring standby databases in the Database Management service +- Support for resource overviews in the Capacity Management service +- Support for optional parameters in the download API in the Java Management Service Downloads service +- Support for creating cross-region autonomous data guards in the Database service +- Support for listing autonomous database peers in the Database service +- Support for dedicated AI clusters in the Generative AI service +- Support for Llama chat and Lora Fine-Tuning method in the Generative AI service +- Support for adding and removing locks for connections, deployments, and deployment backups in the GoldenGate service +- Support for additional connection types for deployments and connections in the GoldenGate service +- Support for 23ai based databases in Globally Distributed Database service +- Support for testing span enrichment groups in Application Performance Monitoring service +- Support for subscription suspension and termination orders in Fusion Apps as a Service +- Support for time first occurred and time last occurred for resource sightings in Cloud Guard service +- Support for alarm summary, notification title, and slack duration on create and update operations in Monitoring service +- Support for message creation timestamp in Queue service +- Support for public connection urls and public endpoints for autonomous databases in the Database service +- Support for insurance claim document type in the AI Document service +- Support for Microsoft IIS discovery and monitoring in the Stack Monitoring service +- Support for MySQL to MySQL homogeneous migrations in the Database Migration service +- Support for manual cross-region backups in the MySQL Heatwave service +- The SDK now uses Jackson-databind version `2.17.1` +- The SDK has removed `nimbus-jose-jwt` from the list of dependencies + +### Breaking Changes +- Return type of method `public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$ResourceType getResourceType()` has been changed to `java.lang.String` in the model `com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary` in the Capacity Management service +- Return type of method `public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$WorkloadType getWorkloadType()` has been changed to `java.lang.String` in the model `com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary` in the Capacity Management service +- Class `com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$ResourceType` has been removed in the Capacity Management service +- Class `com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$WorkloadType` has been removed in the Capacity Management service +- Added final modifier to class `com.oracle.bmc.capacitymanagement.model.OccCapacityRequestBaseDetails` in the Capacity Management service +- Return type of method `public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$WorkloadType getWorkloadType()` has been changed to `java.lang.String` in the model `com.oracle.bmc.capacitymanagement.model.OccCapacityRequestBaseDetails` in the Capacity Management service +- Class `com.oracle.bmc.capacitymanagement.model.OccCapacityRequestBaseDetails$ResourceType` has been removed in the Capacity Management service +- Class `com.oracle.bmc.capacitymanagement.model.OccCapacityRequestComputeDetails` has been removed in the Capacity Management service +- Return type of method `public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$ResourceType getResourceType()` has been changed to `java.lang.String` in `com.oracle.bmc.capacitymanagement.requests.ListOccAvailabilitiesRequest` in the Capacity Management service +- Return type of method `public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$WorkloadType getWorkloadType()` has been changed to `java.lang.String` in `com.oracle.bmc.capacitymanagement.requests.ListOccAvailabilitiesRequest` in the Capacity Management service +- Accessibility of method `public CohereMessage(com.oracle.bmc.generativeaiinference.model.CohereMessage$Role, java.lang.String)` has been decreased from public to protected in the model `om.oracle.bmc.generativeaiinference.model.CohereMessage` in the Generative AI service +- Method `public com.oracle.bmc.generativeaiinference.model.CohereMessage$Builder builder()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.CohereMessage` in the Generative AI service +- Method `public java.lang.String getMessage()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.CohereMessage` in the Generative AI service +- Method `public com.oracle.bmc.generativeaiinference.model.CohereMessage$Role getRole()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.CohereMessage` in the Generative AI service +- Method `public com.oracle.bmc.generativeaiinference.model.CohereMessage$Builder toBuilder()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.CohereMessage` in the Generative AI service +- Field `Dalle3` has been removed from the model `com.oracle.bmc.generativeaiinference.model.LlmInferenceResponse$RuntimeType` in the Generative AI service +- Field `Openai` has been removed from the model `com.oracle.bmc.generativeaiinference.model.LlmInferenceResponse$RuntimeType` in the Generative AI service +- Accessibility of method `public Message(java.lang.String, java.util.List)` has been decreased from public to protected in the model `com.oracle.bmc.generativeaiinference.model.Message` in the Generative AI service +- Method `public com.oracle.bmc.generativeaiinference.model.Message$Builder builder()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.Message` in the Generative AI service +- Method `public java.lang.String getRole()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.Message` in the Generative AI service +- Method `public com.oracle.bmc.generativeaiinference.model.Message$Builder toBuilder()` has been removed from the model `com.oracle.bmc.generativeaiinference.model.Message` in the Generative AI service +- 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 + ## 2.72.0 - 2024-05-21 ### Fixed -- Fixed unnecessary buffering of streams when content length was set for a stream +- Fixed unnecessary buffering of streams when content length was set for a stream (see the issue on [GitHub](https://github.com/oracle/oci-java-sdk/issues/601)) + ### Added - Support for enabling unified auditing for DBHome in the Database service - Support for listing minor Grid Infrastructure (GI) versions available for custom GI software image creation in the Database service @@ -46,7 +115,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Return type of method `public java.lang.String getReproduced()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Reproduced` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service - Return type of method `public java.lang.String getAllSqlStatementsFetched()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlTuningSet$AllSqlStatementsFetched` in the model `com.oracle.bmc.databasemanagement.model.SqlTuningSet` in the Database Management service -## 2.71.0 - 2024-04-25 (not released publicly) +## 2.71.0 - 2024-04-25 ### Added - Support for the Cluster Placement Groups service - Support for new optional parameter for managing approval template in the Managed Access service @@ -101,7 +170,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Class `com.oracle.bmc.email.model.Suppression$Reason` has been removed in the Email Delivery Service - Class `com.oracle.bmc.email.model.SuppressionSummary$Reason` has been removed in the Email Delivery Service -## 2.70.0 - 2024-03-26 (not released publicly) +## 2.70.0 - 2024-03-26 ### Fixed - Fixed a thread leak in `IdleConnectionMonitor` ### Added @@ -121,7 +190,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - The properties `displayName` and `description` have been made required in the model `CreateUnifiedAgentConfigurationDetails` in the Logging service - The property `recordInput` has been made required in the model `OperationalMetricsSource` in the Logging service -## 2.69.1 - 2024-03-12 (not released publicly) +## 2.69.1 - 2024-03-12 ### Added - Support for new development license type on dedicated infrastructure in the Database service - Support for placement parameters on Autonomous Container Database create operation in the Database service @@ -132,7 +201,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Fixed - Preserve DuplicatableInputStream -## 2.69.0 - 2024-03-05 (not released publicly) +## 2.69.0 - 2024-03-05 ### Added - Support for Linux capabilities configuration for the containers in the Container Instances service - Support for service platforms in the Oracle Store Platform Gateway service @@ -143,7 +212,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Breaking Changes - The property `CapacityPlanningResources` has been made optional in the model `NewsContentTypes` in the Operations Insights service -## 2.68.0 - 2024-02-27 (not released publicly) +## 2.68.0 - 2024-02-27 ### Added - Support for adding automatic backups during cross region operations and disaster recovery in the Autonomous Database service - Support for overlapping CIDR in network path analyzer in the Virtual Network Monitoring service @@ -182,11 +251,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Field `PeerAutonomousDatabaseLifeCycleState` has been removed from the model `com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation` in the Database service - Class `com.oracle.bmc.database.model.DatabaseConnectionCredentailsByName` has been removed from the Database service -## 2.67.2 - 2024-02-13 (not released publicly) +## 2.67.2 - 2024-02-13 (internal changes only) -## 2.67.1 - 2024-02-08 (not released publicly) +## 2.67.1 - 2024-02-08 ### Fixed - The thread `IdleConnectionMonitor` is terminated when the client is closed ### Added @@ -216,7 +285,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Class `com.oracle.bmc.managementagent.model.EditModes` has been removed from the Management Agent service - Return type of method `public com.oracle.bmc.managementagent.model.OperationTypes getType()` has been changed to `java.util.List` in `com.oracle.bmc.managementagent.requests.ListWorkRequestsRequest` in the Management Agent service -## 2.67.0 - 2024-02-01 (not released publicly) +## 2.67.0 - 2024-02-01 ### Added - Support for calling Oracle Cloud Infrastructure services in the eu-dcc-zurich-1 and the sa-bogota-1 region - Support for managing certificates of target Servers in the Golden Gate service @@ -379,7 +448,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Fixed - If `restClientFactoryBuilder` is set in a client's builder, it is now actually used for creating the `RestClientFactory` and the underlying `RestClient`. -## 2.66.2 - 2023-12-01 (not released publicly) +## 2.66.2 - 2023-12-01 ### Added - Support for listing compute performances and storage performances in Database service - Support for private endpoints for external key managers in Key Management service @@ -489,7 +558,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - `ProcessingException` is now caught and `BmcException` is thrown instead in order to fix timeout retries - Return type of method `public java.lang.String getStatus()` has been changed to `com.oracle.bmc.identitydomains.model.MyRequest$Status` in `com.oracle.bmc.identitydomains.model.MyRequest` in the Identity Domains service -## 2.66.1 - 2023-09-13 (not released publicly) +## 2.66.1 - 2023-09-13 ### Added - Support for Duration class in `com.oracle.bmc.http.Serialization` - Support for specifying default snapshot enablement, verified response codes, client certificate details, and request authentication schemes when creating or updating synthetic monitors in the Application Performance Monitoring service diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt index a2c7192cbc..1ed2c2e70a 100644 --- a/THIRD_PARTY_LICENSES.txt +++ b/THIRD_PARTY_LICENSES.txt @@ -166,10 +166,6 @@ com.google.j2objc:j2objc-annotations * License: Apache License 2.0 * Source code: https://github.com/google/j2objc/ -com.nimbusds:nimbus-jose-jwt -* Copyright © 2012 - 2020, Connect2id Ltd -* License: Apache License 2.0 - com.sun.activation:jakarta.activation * Copyright © 2018 Oracle and/or its affiliates. All rights reserved. * License: Eclipse Distribution License 1.0 @@ -2280,16 +2276,6 @@ http://www.w3.org/Consortium/Legal/ ========================= Fourth Party Notices ========================= - -com.nimbusds:nimbus-jose-jwt - - -Nimbus JOSE + JWT - -Copyright 2012 - 2020, Connect2id Ltd. - ------------------------------------------------------------------------- - commons-logging Apache Commons Logging diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index d9e0752f74..9ae4de6fd4 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 18f62bdf38..5d0745f661 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.72.0 + 2.73.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml index 094f29ca66..ca0b714377 100644 --- a/bmc-addons/bmc-graalvm-addon/pom.xml +++ b/bmc-addons/bmc-graalvm-addon/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-addons-graalvm @@ -132,30 +132,30 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-identity - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-core - 2.72.0 + 2.73.0 test diff --git a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java index e2f3382730..6d8ee976db 100644 --- a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java +++ b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java @@ -51,6 +51,7 @@ "com.oracle.bmc.datalabelingservicedataplane.SdkClientsMetadata", "com.oracle.bmc.datasafe.SdkClientsMetadata", "com.oracle.bmc.datascience.SdkClientsMetadata", + "com.oracle.bmc.demandsignal.SdkClientsMetadata", "com.oracle.bmc.desktops.SdkClientsMetadata", "com.oracle.bmc.devops.SdkClientsMetadata", "com.oracle.bmc.disasterrecovery.SdkClientsMetadata", diff --git a/bmc-addons/bmc-graalvm-addon/src/main/resources/META-INF/native-image/com.oracle.bmc.graalvm/native-image.properties b/bmc-addons/bmc-graalvm-addon/src/main/resources/META-INF/native-image/com.oracle.bmc.graalvm/native-image.properties index 5a4afef339..472d6f4d0e 100644 --- a/bmc-addons/bmc-graalvm-addon/src/main/resources/META-INF/native-image/com.oracle.bmc.graalvm/native-image.properties +++ b/bmc-addons/bmc-graalvm-addon/src/main/resources/META-INF/native-image/com.oracle.bmc.graalvm/native-image.properties @@ -3,5 +3,5 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -Args = --initialize-at-build-time=net.minidev.json.JSONObject,com.nimbusds.jose.jwk.KeyType,net.minidev.json.reader.BeansWriter,com.nimbusds.jose.JWSAlgorithm,org.glassfish.jersey.internal.LocalizationMessages,org.glassfish.jersey.message.internal.MediaTypeProvider,org.glassfish.jersey.message.internal.CacheControlProvider,org.glassfish.jersey.message.internal.LinkProvider \ +Args = --initialize-at-build-time=net.minidev.json.JSONObject,net.minidev.json.reader.BeansWriter,org.glassfish.jersey.internal.LocalizationMessages,org.glassfish.jersey.message.internal.MediaTypeProvider,org.glassfish.jersey.message.internal.CacheControlProvider,org.glassfish.jersey.message.internal.LinkProvider \ --features=com.oracle.bmc.graalvm.SdkAutomaticFeature,com.oracle.bmc.graalvm.BouncyCastleFeature \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index d9a1be47b4..dc6d40013d 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.72.0 + 2.73.0 4.0.0 @@ -38,24 +38,24 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-core - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-identity - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.72.0 + 2.73.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 7aaf052a5d..d11d2e2b79 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.72.0 + 2.73.0 ../pom.xml @@ -25,7 +25,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 8cd230925c..29c5f3c434 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -7,7 +7,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -62,7 +62,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index ce86429747..58915bbb40 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index d081be71b2..17c57b638a 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-adm @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 951c9b2d8d..b72ec9b837 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 51814f48b9..487c8dc097 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-aidocument @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java index ac4093a3c3..0db817f4b0 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java @@ -19,6 +19,7 @@ public enum DocumentType { Check("CHECK"), Payslip("PAYSLIP"), Others("OTHERS"), + InsuranceClaim("INSURANCE_CLAIM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index a61de0c506..f5a706c00e 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-ailanguage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 8bb10a5931..d15d5b4874 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-aispeech @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 8c1b03620c..ca079ec1e4 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-aivision @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 2b83fed7c9..ae6be2a877 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-analytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index eb36894950..effd9a49d0 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-announcementsservice @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 0ec2c2d3cf..751e7e53ad 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-apigateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 1af1954231..6e3d8f8edf 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-apmconfig @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java index 42852cc1bb..27e085c3f8 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java @@ -134,6 +134,20 @@ RetrieveNamespaceMetricsResponse retrieveNamespaceMetrics( */ RetrieveNamespacesResponse retrieveNamespaces(RetrieveNamespacesRequest request); + /** + * Tests a data processing operation on the provided input, returning the potentially modified + * input as output. Returns 200 on success, 422 when the input can not be processed. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use Test API. + */ + TestResponse test(TestRequest request); + /** * Updates the details of the configuration item identified by the OCID. * @param request The request object containing the details to send diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java index daa5fff6fa..e61dd5c7c9 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java @@ -150,6 +150,22 @@ java.util.concurrent.Future retrieveNamespaces( RetrieveNamespacesRequest, RetrieveNamespacesResponse> handler); + /** + * Tests a data processing operation on the provided input, returning the potentially modified + * input as output. Returns 200 on success, 422 when the input can not be processed. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future test( + TestRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates the details of the configuration item identified by the OCID. * diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java index b5c04b8dcb..c06a4f8621 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java @@ -736,6 +736,50 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future test( + TestRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async test"); + final TestRequest interceptedRequest = TestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + TestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "Test", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/TestOutput/Test"); + final java.util.function.Function transformer = + TestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getTestDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + TestRequest, TestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateConfig( UpdateConfigRequest request, diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java index 9b4b8d0841..ec76f202e7 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java @@ -698,6 +698,44 @@ public RetrieveNamespacesResponse retrieveNamespaces(RetrieveNamespacesRequest r }); } + @Override + public TestResponse test(TestRequest request) { + LOG.trace("Called test"); + final TestRequest interceptedRequest = TestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + TestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Config", + "Test", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/TestOutput/Test"); + java.util.function.Function transformer = + TestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getTestDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateConfigResponse updateConfig(UpdateConfigRequest request) { LOG.trace("Called updateConfig"); diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/TestConverter.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/TestConverter.java new file mode 100644 index 0000000000..fe830a753a --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/internal/http/TestConverter.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.apmconfig.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.apmconfig.model.*; +import com.oracle.bmc.apmconfig.requests.*; +import com.oracle.bmc.apmconfig.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class TestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TestConverter.class); + + public static com.oracle.bmc.apmconfig.requests.TestRequest interceptRequest( + com.oracle.bmc.apmconfig.requests.TestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.apmconfig.requests.TestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getApmDomainId(), "apmDomainId is required"); + Validate.notNull(request.getTestDetails(), "testDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20210201").path("actions").path("test"); + + target = + target.queryParam( + "apmDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApmDomainId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.apmconfig.responses.TestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.apmconfig.responses.TestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.apmconfig.responses.TestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.apmconfig.responses.TestResponse>() { + @Override + public com.oracle.bmc.apmconfig.responses.TestResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.apmconfig.responses.TestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apmconfig.model.TestOutput>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apmconfig.model.TestOutput.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.apmconfig.model.TestOutput + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.apmconfig.model.TestOutput> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.apmconfig.responses.TestResponse.Builder builder = + com.oracle.bmc.apmconfig.responses.TestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.testOutput(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.apmconfig.responses.TestResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/FilterTextOrId.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/FilterTextOrId.java new file mode 100644 index 0000000000..d79aa59b6a --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/FilterTextOrId.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.apmconfig.model; + +/** + * A span filter written in text, or as the [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * SpanFilter resource. If both are given, the filterText is 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FilterTextOrId.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class FilterTextOrId extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"filterId", "filterText"}) + public FilterTextOrId(String filterId, String filterText) { + super(); + this.filterId = filterId; + this.filterText = filterText; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation + * of MetricGroups. A filterId is generated when a Span Filter is created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filterId") + private String filterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation + * of MetricGroups. A filterId is generated when a Span Filter is created. + * + * @param filterId the value to set + * @return this builder + **/ + public Builder filterId(String filterId) { + this.filterId = filterId; + this.__explicitlySet__.add("filterId"); + return this; + } + /** + * The string that defines the Span Filter expression. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filterText") + private String filterText; + + /** + * The string that defines the Span Filter expression. + * + * @param filterText the value to set + * @return this builder + **/ + public Builder filterText(String filterText) { + this.filterText = filterText; + this.__explicitlySet__.add("filterText"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FilterTextOrId build() { + FilterTextOrId model = new FilterTextOrId(this.filterId, this.filterText); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FilterTextOrId model) { + if (model.wasPropertyExplicitlySet("filterId")) { + this.filterId(model.getFilterId()); + } + if (model.wasPropertyExplicitlySet("filterText")) { + this.filterText(model.getFilterText()); + } + 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 a Span Filter. The filterId is mandatory for the creation + * of MetricGroups. A filterId is generated when a Span Filter is created. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filterId") + private final String filterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation + * of MetricGroups. A filterId is generated when a Span Filter is created. + * + * @return the value + **/ + public String getFilterId() { + return filterId; + } + + /** + * The string that defines the Span Filter expression. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filterText") + private final String filterText; + + /** + * The string that defines the Span Filter expression. + * + * @return the value + **/ + public String getFilterText() { + return filterText; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FilterTextOrId("); + sb.append("super=").append(super.toString()); + sb.append("filterId=").append(String.valueOf(this.filterId)); + sb.append(", filterText=").append(String.valueOf(this.filterText)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FilterTextOrId)) { + return false; + } + + FilterTextOrId other = (FilterTextOrId) o; + return java.util.Objects.equals(this.filterId, other.filterId) + && java.util.Objects.equals(this.filterText, other.filterText) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.filterId == null ? 43 : this.filterId.hashCode()); + result = (result * PRIME) + (this.filterText == null ? 43 : this.filterText.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestDetails.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestDetails.java new file mode 100644 index 0000000000..21b8af6e06 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestDetails.java @@ -0,0 +1,76 @@ +/** + * 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.apmconfig.model; + +/** + * The request body used to execute a test. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "testType", + defaultImpl = TestDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TestSpanEnrichmentDetails.class, + name = "SPAN_ENRICHMENT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TestDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected TestDetails() { + 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("TestDetails("); + 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 TestDetails)) { + return false; + } + + TestDetails other = (TestDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestOutput.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestOutput.java new file mode 100644 index 0000000000..5149daee07 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestOutput.java @@ -0,0 +1,76 @@ +/** + * 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.apmconfig.model; + +/** + * The result of running a test. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "testType", + defaultImpl = TestOutput.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TestSpanEnrichmentOutput.class, + name = "SPAN_ENRICHMENT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TestOutput extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected TestOutput() { + 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("TestOutput("); + 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 TestOutput)) { + return false; + } + + TestOutput other = (TestOutput) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentDetails.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentDetails.java new file mode 100644 index 0000000000..1cf6a53922 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentDetails.java @@ -0,0 +1,226 @@ +/** + * 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.apmconfig.model; + +/** + * Run a set of span enrichment rules on a given span to see the result. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestSpanEnrichmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "testType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TestSpanEnrichmentDetails extends TestDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The span enrichment rules to test in the format of an Options resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("options") + private Object options; + + /** + * The span enrichment rules to test in the format of an Options resource. + * @param options the value to set + * @return this builder + **/ + public Builder options(Object options) { + this.options = options; + this.__explicitlySet__.add("options"); + return this; + } + /** + * A list of filters to try against the given span. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private java.util.List filters; + + /** + * A list of filters to try against the given span. + * @param filters the value to set + * @return this builder + **/ + public Builder filters(java.util.List filters) { + this.filters = filters; + this.__explicitlySet__.add("filters"); + return this; + } + /** + * The span to test the rules on. This should be a valid JSON object that follows one + * of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or + * Oracle Application Performance Monitoring. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("span") + private Object span; + + /** + * The span to test the rules on. This should be a valid JSON object that follows one + * of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or + * Oracle Application Performance Monitoring. + * + * @param span the value to set + * @return this builder + **/ + public Builder span(Object span) { + this.span = span; + this.__explicitlySet__.add("span"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestSpanEnrichmentDetails build() { + TestSpanEnrichmentDetails model = + new TestSpanEnrichmentDetails(this.options, this.filters, this.span); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestSpanEnrichmentDetails model) { + if (model.wasPropertyExplicitlySet("options")) { + this.options(model.getOptions()); + } + if (model.wasPropertyExplicitlySet("filters")) { + this.filters(model.getFilters()); + } + if (model.wasPropertyExplicitlySet("span")) { + this.span(model.getSpan()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TestSpanEnrichmentDetails( + Object options, java.util.List filters, Object span) { + super(); + this.options = options; + this.filters = filters; + this.span = span; + } + + /** + * The span enrichment rules to test in the format of an Options resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("options") + private final Object options; + + /** + * The span enrichment rules to test in the format of an Options resource. + * @return the value + **/ + public Object getOptions() { + return options; + } + + /** + * A list of filters to try against the given span. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private final java.util.List filters; + + /** + * A list of filters to try against the given span. + * @return the value + **/ + public java.util.List getFilters() { + return filters; + } + + /** + * The span to test the rules on. This should be a valid JSON object that follows one + * of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or + * Oracle Application Performance Monitoring. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("span") + private final Object span; + + /** + * The span to test the rules on. This should be a valid JSON object that follows one + * of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or + * Oracle Application Performance Monitoring. + * + * @return the value + **/ + public Object getSpan() { + return span; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TestSpanEnrichmentDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", options=").append(String.valueOf(this.options)); + sb.append(", filters=").append(String.valueOf(this.filters)); + sb.append(", span=").append(String.valueOf(this.span)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestSpanEnrichmentDetails)) { + return false; + } + + TestSpanEnrichmentDetails other = (TestSpanEnrichmentDetails) o; + return java.util.Objects.equals(this.options, other.options) + && java.util.Objects.equals(this.filters, other.filters) + && java.util.Objects.equals(this.span, other.span) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.options == null ? 43 : this.options.hashCode()); + result = (result * PRIME) + (this.filters == null ? 43 : this.filters.hashCode()); + result = (result * PRIME) + (this.span == null ? 43 : this.span.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentOutput.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentOutput.java new file mode 100644 index 0000000000..26fa4b5d40 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestSpanEnrichmentOutput.java @@ -0,0 +1,179 @@ +/** + * 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.apmconfig.model; + +/** + * Output of running a set of span enrichment rules against a span. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestSpanEnrichmentOutput.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "testType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TestSpanEnrichmentOutput extends TestOutput { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The span after applying enrichment rules. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("span") + private Object span; + + /** + * The span after applying enrichment rules. + * @param span the value to set + * @return this builder + **/ + public Builder span(Object span) { + this.span = span; + this.__explicitlySet__.add("span"); + return this; + } + /** + * A list of booleans indicating whether the corresponding filter in the input matched the input span. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private java.util.List filters; + + /** + * A list of booleans indicating whether the corresponding filter in the input matched the input span. + * + * @param filters the value to set + * @return this builder + **/ + public Builder filters(java.util.List filters) { + this.filters = filters; + this.__explicitlySet__.add("filters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestSpanEnrichmentOutput build() { + TestSpanEnrichmentOutput model = new TestSpanEnrichmentOutput(this.span, this.filters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestSpanEnrichmentOutput model) { + if (model.wasPropertyExplicitlySet("span")) { + this.span(model.getSpan()); + } + if (model.wasPropertyExplicitlySet("filters")) { + this.filters(model.getFilters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TestSpanEnrichmentOutput(Object span, java.util.List filters) { + super(); + this.span = span; + this.filters = filters; + } + + /** + * The span after applying enrichment rules. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("span") + private final Object span; + + /** + * The span after applying enrichment rules. + * @return the value + **/ + public Object getSpan() { + return span; + } + + /** + * A list of booleans indicating whether the corresponding filter in the input matched the input span. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private final java.util.List filters; + + /** + * A list of booleans indicating whether the corresponding filter in the input matched the input span. + * + * @return the value + **/ + public java.util.List getFilters() { + return filters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TestSpanEnrichmentOutput("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", span=").append(String.valueOf(this.span)); + sb.append(", filters=").append(String.valueOf(this.filters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestSpanEnrichmentOutput)) { + return false; + } + + TestSpanEnrichmentOutput other = (TestSpanEnrichmentOutput) o; + return java.util.Objects.equals(this.span, other.span) + && java.util.Objects.equals(this.filters, other.filters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.span == null ? 43 : this.span.hashCode()); + result = (result * PRIME) + (this.filters == null ? 43 : this.filters.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestTypes.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestTypes.java new file mode 100644 index 0000000000..833d1ee356 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/TestTypes.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.apmconfig.model; + +/** + * Type of test to run. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public enum TestTypes { + SpanEnrichment("SPAN_ENRICHMENT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(TestTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestTypes v : TestTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TestTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TestTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/TestRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/TestRequest.java new file mode 100644 index 0000000000..c0dcc0df73 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/TestRequest.java @@ -0,0 +1,261 @@ +/** + * 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.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use TestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class TestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId; + + /** + * The APM Domain ID the request is intended for. + * + */ + public String getApmDomainId() { + return apmDomainId; + } + /** + * The test input. + */ + private com.oracle.bmc.apmconfig.model.TestDetails testDetails; + + /** + * The test input. + */ + public com.oracle.bmc.apmconfig.model.TestDetails getTestDetails() { + return testDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.apmconfig.model.TestDetails getBody$() { + return testDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + TestRequest, com.oracle.bmc.apmconfig.model.TestDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The APM Domain ID the request is intended for. + * + */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** + * The test input. + */ + private com.oracle.bmc.apmconfig.model.TestDetails testDetails = null; + + /** + * The test input. + * @param testDetails the value to set + * @return this builder instance + */ + public Builder testDetails(com.oracle.bmc.apmconfig.model.TestDetails testDetails) { + this.testDetails = testDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(TestRequest o) { + apmDomainId(o.getApmDomainId()); + testDetails(o.getTestDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of TestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of TestRequest + */ + public TestRequest build() { + TestRequest 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.apmconfig.model.TestDetails body) { + testDetails(body); + return this; + } + + /** + * Build the instance of TestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of TestRequest + */ + public TestRequest buildWithoutInvocationCallback() { + TestRequest request = new TestRequest(); + request.apmDomainId = apmDomainId; + request.testDetails = testDetails; + request.opcRequestId = opcRequestId; + return request; + // new TestRequest(apmDomainId, testDetails, 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() + .apmDomainId(apmDomainId) + .testDetails(testDetails) + .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(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",testDetails=").append(String.valueOf(this.testDetails)); + 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 TestRequest)) { + return false; + } + + TestRequest other = (TestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.testDetails, other.testDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.testDetails == null ? 43 : this.testDetails.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/UpdateAgentResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/TestResponse.java similarity index 77% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateAgentResponse.java rename to bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/TestResponse.java index 5946f87be6..9397cb173a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateAgentResponse.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/TestResponse.java @@ -2,12 +2,12 @@ * 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.apmconfig.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.apmconfig.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class UpdateAgentResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class TestResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -41,16 +41,16 @@ public String getEtag() { } /** - * The returned Agent instance. + * The returned TestOutput instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; + private com.oracle.bmc.apmconfig.model.TestOutput testOutput; /** - * The returned Agent instance. + * The returned TestOutput instance. * @return the value */ - public com.oracle.bmc.databasemigration.model.Agent getAgent() { - return agent; + public com.oracle.bmc.apmconfig.model.TestOutput getTestOutput() { + return testOutput; } @java.beans.ConstructorProperties({ @@ -58,18 +58,18 @@ public com.oracle.bmc.databasemigration.model.Agent getAgent() { "headers", "opcRequestId", "etag", - "agent" + "testOutput" }) - private UpdateAgentResponse( + private TestResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.databasemigration.model.Agent agent) { + com.oracle.bmc.apmconfig.model.TestOutput testOutput) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.agent = agent; + this.testOutput = testOutput; } public static class Builder { @@ -124,17 +124,17 @@ public Builder etag(String etag) { } /** - * The returned Agent instance. + * The returned TestOutput instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; + private com.oracle.bmc.apmconfig.model.TestOutput testOutput; /** - * The returned Agent instance. - * @param agent the value to set + * The returned TestOutput instance. + * @param testOutput the value to set * @return this builder */ - public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { - this.agent = agent; + public Builder testOutput(com.oracle.bmc.apmconfig.model.TestOutput testOutput) { + this.testOutput = testOutput; return this; } @@ -142,12 +142,12 @@ public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateAgentResponse o) { + public Builder copy(TestResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - agent(o.getAgent()); + testOutput(o.getTestOutput()); return this; } @@ -156,8 +156,8 @@ public Builder copy(UpdateAgentResponse o) { * Build the response object. * @return the response object */ - public UpdateAgentResponse build() { - return new UpdateAgentResponse(__httpStatusCode__, headers, opcRequestId, etag, agent); + public TestResponse build() { + return new TestResponse(__httpStatusCode__, headers, opcRequestId, etag, testOutput); } } @@ -176,7 +176,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",agent=").append(String.valueOf(agent)); + sb.append(",testOutput=").append(String.valueOf(testOutput)); sb.append(")"); return sb.toString(); } @@ -186,15 +186,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAgentResponse)) { + if (!(o instanceof TestResponse)) { return false; } - UpdateAgentResponse other = (UpdateAgentResponse) o; + TestResponse other = (TestResponse) 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); + && java.util.Objects.equals(this.testOutput, other.testOutput); } @Override @@ -203,7 +203,7 @@ public int hashCode() { 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()); + result = (result * PRIME) + (this.testOutput == null ? 43 : this.testOutput.hashCode()); return result; } } diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index ce1293e850..88988ade13 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 56018f80d6..cb59bd71e5 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 7e2a69a65e..47b5e5b043 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-apmtraces @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 22d0261d4f..3b261850b1 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 8e7bd538c4..3e76813fd4 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-artifacts @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index d898dc6bdd..ba9687d87f 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 4b57952f35..e253ba10f2 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-autoscaling @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index fdc8b8bf49..1c90d34c25 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-bastion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 0421e98412..0d9dccf11b 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-bds @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 36eaa9bdad..a85549f48d 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-blockchain @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 96c8adc38e..3e4c6aeb13 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-bom @@ -19,899 +19,905 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-audit - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-core - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-database - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-dns - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-email - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-identity - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-addons-graalvm - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-waas - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-ons - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-budget - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-limits - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-functions - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-events - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-dts - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-oce - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-oda - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-integration - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-vault - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-bds - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-cims - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-logging - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-sch - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-rover - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-jms - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-devops - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-waf - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-usage - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-adm - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-waa - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-opa - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-queue - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-redis - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-psql - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 2.72.0 + 2.73.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 2.72.0 + 2.73.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-demandsignal + 2.73.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 0147866e6d..b9952b78ba 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-budget @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 94f6c5ea11..4f7b96df20 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java index 1109aaee66..2b4d7569f3 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java @@ -163,6 +163,20 @@ GetOccAvailabilityCatalogContentResponse getOccAvailabilityCatalogContent( */ GetOccCustomerGroupResponse getOccCustomerGroup(GetOccCustomerGroupRequest request); + /** + * Lists an overview of all resources in that namespace in a given time interval. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListInternalNamespaceOccOverviews API. + */ + ListInternalNamespaceOccOverviewsResponse listInternalNamespaceOccOverviews( + ListInternalNamespaceOccOverviewsRequest request); + /** * Lists availabilities for a particular availability catalog. * @param request The request object containing the details to send @@ -239,6 +253,32 @@ ListOccCapacityRequestsInternalResponse listOccCapacityRequestsInternal( */ ListOccCustomerGroupsResponse listOccCustomerGroups(ListOccCustomerGroupsRequest request); + /** + * Lists an overview of all resources in that namespace in a given time interval. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListOccOverviews API. + */ + ListOccOverviewsResponse listOccOverviews(ListOccOverviewsRequest request); + + /** + * Updates the OccCapacityRequest by evaluating a sequence of instructions. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PatchInternalOccCapacityRequest API. + */ + PatchInternalOccCapacityRequestResponse patchInternalOccCapacityRequest( + PatchInternalOccCapacityRequestRequest request); + /** * Updates the OccCapacityRequest by evaluating a sequence of instructions. * @param request The request object containing the details to send diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java index dffb17925f..bac506f4f9 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java @@ -192,6 +192,25 @@ java.util.concurrent.Future getOccCustomerGroup( GetOccCustomerGroupRequest, GetOccCustomerGroupResponse> handler); + /** + * Lists an overview of all resources in that namespace in a given time interval. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listInternalNamespaceOccOverviews( + ListInternalNamespaceOccOverviewsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse> + handler); + /** * Lists availabilities for a particular availability catalog. * @@ -293,6 +312,40 @@ java.util.concurrent.Future listOccCustomerGroups ListOccCustomerGroupsRequest, ListOccCustomerGroupsResponse> handler); + /** + * Lists an overview of all resources in that namespace in a given time interval. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listOccOverviews( + ListOccOverviewsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates the OccCapacityRequest by evaluating a sequence of instructions. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + patchInternalOccCapacityRequest( + PatchInternalOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchInternalOccCapacityRequestRequest, + PatchInternalOccCapacityRequestResponse> + handler); + /** * Updates the OccCapacityRequest by evaluating a sequence of instructions. * diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java index b0b8f94e8f..e1f4df3e6e 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java @@ -872,6 +872,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listInternalNamespaceOccOverviews( + ListInternalNamespaceOccOverviewsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse> + handler) { + LOG.trace("Called async listInternalNamespaceOccOverviews"); + final ListInternalNamespaceOccOverviewsRequest interceptedRequest = + ListInternalNamespaceOccOverviewsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInternalNamespaceOccOverviewsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "ListInternalNamespaceOccOverviews", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ListInternalNamespaceOccOverviewsResponse> + transformer = + ListInternalNamespaceOccOverviewsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listOccAvailabilities( ListOccAvailabilitiesRequest request, @@ -1172,6 +1225,110 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listOccOverviews( + ListOccOverviewsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccOverviewsRequest, ListOccOverviewsResponse> + handler) { + LOG.trace("Called async listOccOverviews"); + final ListOccOverviewsRequest interceptedRequest = + ListOccOverviewsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccOverviewsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "ListOccOverviews", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function + transformer = + ListOccOverviewsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListOccOverviewsRequest, ListOccOverviewsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListOccOverviewsRequest, ListOccOverviewsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + patchInternalOccCapacityRequest( + PatchInternalOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchInternalOccCapacityRequestRequest, + PatchInternalOccCapacityRequestResponse> + handler) { + LOG.trace("Called async patchInternalOccCapacityRequest"); + final PatchInternalOccCapacityRequestRequest interceptedRequest = + PatchInternalOccCapacityRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchInternalOccCapacityRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "PatchInternalOccCapacityRequest", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, PatchInternalOccCapacityRequestResponse> + transformer = + PatchInternalOccCapacityRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + PatchInternalOccCapacityRequestRequest, + PatchInternalOccCapacityRequestResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PatchInternalOccCapacityRequestRequest, + PatchInternalOccCapacityRequestResponse>, + java.util.concurrent.Future> + futureSupplier = + client.patchFutureSupplier( + interceptedRequest, + interceptedRequest.getPatchOccCapacityRequestDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PatchInternalOccCapacityRequestRequest, + PatchInternalOccCapacityRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future patchOccCapacityRequest( PatchOccCapacityRequestRequest request, diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java index b8d5d1b01d..b9da5aa69a 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java @@ -872,6 +872,45 @@ public GetOccCustomerGroupResponse getOccCustomerGroup(GetOccCustomerGroupReques }); } + @Override + public ListInternalNamespaceOccOverviewsResponse listInternalNamespaceOccOverviews( + ListInternalNamespaceOccOverviewsRequest request) { + LOG.trace("Called listInternalNamespaceOccOverviews"); + final ListInternalNamespaceOccOverviewsRequest interceptedRequest = + ListInternalNamespaceOccOverviewsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListInternalNamespaceOccOverviewsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "ListInternalNamespaceOccOverviews", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, ListInternalNamespaceOccOverviewsResponse> + transformer = + ListInternalNamespaceOccOverviewsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListOccAvailabilitiesResponse listOccAvailabilities( ListOccAvailabilitiesRequest request) { @@ -1103,6 +1142,86 @@ public ListOccCustomerGroupsResponse listOccCustomerGroups( }); } + @Override + public ListOccOverviewsResponse listOccOverviews(ListOccOverviewsRequest request) { + LOG.trace("Called listOccOverviews"); + final ListOccOverviewsRequest interceptedRequest = + ListOccOverviewsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccOverviewsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "ListOccOverviews", + ib.getRequestUri().toString(), + ""); + java.util.function.Function + transformer = + ListOccOverviewsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public PatchInternalOccCapacityRequestResponse patchInternalOccCapacityRequest( + PatchInternalOccCapacityRequestRequest request) { + LOG.trace("Called patchInternalOccCapacityRequest"); + final PatchInternalOccCapacityRequestRequest interceptedRequest = + PatchInternalOccCapacityRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchInternalOccCapacityRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "CapacityManagement", + "PatchInternalOccCapacityRequest", + ib.getRequestUri().toString(), + ""); + java.util.function.Function< + javax.ws.rs.core.Response, PatchInternalOccCapacityRequestResponse> + transformer = + PatchInternalOccCapacityRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.patch( + ib, + retriedRequest.getPatchOccCapacityRequestDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public PatchOccCapacityRequestResponse patchOccCapacityRequest( PatchOccCapacityRequestRequest request) { diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java index 77e9e8bccc..1339424921 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java @@ -33,6 +33,133 @@ public CapacityManagementPaginators(CapacityManagement client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the listInternalNamespaceOccOverviews 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 + listInternalNamespaceOccOverviewsResponseIterator( + final ListInternalNamespaceOccOverviewsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInternalNamespaceOccOverviewsRequest.Builder, + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse>( + new java.util.function.Supplier< + ListInternalNamespaceOccOverviewsRequest.Builder>() { + @Override + public ListInternalNamespaceOccOverviewsRequest.Builder get() { + return ListInternalNamespaceOccOverviewsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListInternalNamespaceOccOverviewsResponse, String>() { + @Override + public String apply(ListInternalNamespaceOccOverviewsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInternalNamespaceOccOverviewsRequest.Builder>, + ListInternalNamespaceOccOverviewsRequest>() { + @Override + public ListInternalNamespaceOccOverviewsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInternalNamespaceOccOverviewsRequest.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< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse>() { + @Override + public ListInternalNamespaceOccOverviewsResponse apply( + ListInternalNamespaceOccOverviewsRequest request) { + return client.listInternalNamespaceOccOverviews(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.capacitymanagement.model.OccOverviewSummary} objects + * contained in responses from the listInternalNamespaceOccOverviews 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.capacitymanagement.model.OccOverviewSummary} objects + * contained in responses received from the service. + */ + public Iterable + listInternalNamespaceOccOverviewsRecordIterator( + final ListInternalNamespaceOccOverviewsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInternalNamespaceOccOverviewsRequest.Builder, + ListInternalNamespaceOccOverviewsRequest, ListInternalNamespaceOccOverviewsResponse, + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary>( + new java.util.function.Supplier< + ListInternalNamespaceOccOverviewsRequest.Builder>() { + @Override + public ListInternalNamespaceOccOverviewsRequest.Builder get() { + return ListInternalNamespaceOccOverviewsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListInternalNamespaceOccOverviewsResponse, String>() { + @Override + public String apply(ListInternalNamespaceOccOverviewsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInternalNamespaceOccOverviewsRequest.Builder>, + ListInternalNamespaceOccOverviewsRequest>() { + @Override + public ListInternalNamespaceOccOverviewsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInternalNamespaceOccOverviewsRequest.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< + ListInternalNamespaceOccOverviewsRequest, + ListInternalNamespaceOccOverviewsResponse>() { + @Override + public ListInternalNamespaceOccOverviewsResponse apply( + ListInternalNamespaceOccOverviewsRequest request) { + return client.listInternalNamespaceOccOverviews(request); + } + }, + new java.util.function.Function< + ListInternalNamespaceOccOverviewsResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary> + apply(ListInternalNamespaceOccOverviewsResponse response) { + return response.getOccOverviewCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listOccAvailabilities operation. This iterable * will fetch more data from the server as needed. @@ -765,4 +892,118 @@ public ListOccCustomerGroupsResponse apply( } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the listOccOverviews 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 listOccOverviewsResponseIterator( + final ListOccOverviewsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccOverviewsRequest.Builder, ListOccOverviewsRequest, ListOccOverviewsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccOverviewsRequest.Builder get() { + return ListOccOverviewsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccOverviewsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccOverviewsRequest.Builder>, + ListOccOverviewsRequest>() { + @Override + public ListOccOverviewsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccOverviewsRequest.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< + ListOccOverviewsRequest, ListOccOverviewsResponse>() { + @Override + public ListOccOverviewsResponse apply(ListOccOverviewsRequest request) { + return client.listOccOverviews(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.capacitymanagement.model.OccOverviewSummary} objects + * contained in responses from the listOccOverviews 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.capacitymanagement.model.OccOverviewSummary} objects + * contained in responses received from the service. + */ + public Iterable + listOccOverviewsRecordIterator(final ListOccOverviewsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccOverviewsRequest.Builder, ListOccOverviewsRequest, ListOccOverviewsResponse, + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary>( + new java.util.function.Supplier() { + @Override + public ListOccOverviewsRequest.Builder get() { + return ListOccOverviewsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccOverviewsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccOverviewsRequest.Builder>, + ListOccOverviewsRequest>() { + @Override + public ListOccOverviewsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccOverviewsRequest.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< + ListOccOverviewsRequest, ListOccOverviewsResponse>() { + @Override + public ListOccOverviewsResponse apply(ListOccOverviewsRequest request) { + return client.listOccOverviews(request); + } + }, + new java.util.function.Function< + ListOccOverviewsResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model.OccOverviewSummary> + apply(ListOccOverviewsResponse response) { + return response.getOccOverviewCollection().getItems(); + } + }); + } } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListInternalNamespaceOccOverviewsConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListInternalNamespaceOccOverviewsConverter.java new file mode 100644 index 0000000000..ed1aeebfb8 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListInternalNamespaceOccOverviewsConverter.java @@ -0,0 +1,233 @@ +/** + * 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.capacitymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.capacitymanagement.model.*; +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListInternalNamespaceOccOverviewsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListInternalNamespaceOccOverviewsConverter.class); + + public static com.oracle.bmc.capacitymanagement.requests + .ListInternalNamespaceOccOverviewsRequest + interceptRequest( + com.oracle.bmc.capacitymanagement.requests + .ListInternalNamespaceOccOverviewsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.capacitymanagement.requests.ListInternalNamespaceOccOverviewsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespace().getValue(), "namespace must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20231107") + .path("internal") + .path("namespace") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespace().getValue())) + .path("occOverview"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getOccCustomerGroupId() != null) { + target = + target.queryParam( + "occCustomerGroupId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOccCustomerGroupId())); + } + + if (request.getWorkloadType() != null) { + target = + target.queryParam( + "workloadType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkloadType())); + } + + if (request.getFrom() != null) { + target = + target.queryParam( + "from", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFrom())); + } + + if (request.getTo() != null) { + target = + target.queryParam( + "to", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTo())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse>() { + @Override + public com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.capacitymanagement.responses.ListInternalNamespaceOccOverviewsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse.Builder + builder = + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occOverviewCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.capacitymanagement.responses + .ListInternalNamespaceOccOverviewsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccAvailabilitiesConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccAvailabilitiesConverter.java index 7519e21636..03c2ce21b3 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccAvailabilitiesConverter.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccAvailabilitiesConverter.java @@ -65,7 +65,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "resourceType", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceType().getValue())); + request.getResourceType())); } if (request.getWorkloadType() != null) { @@ -73,7 +73,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "workloadType", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getWorkloadType().getValue())); + request.getWorkloadType())); } if (request.getLimit() != null) { diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsConverter.java index b897958170..a94aa3c12a 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsConverter.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsConverter.java @@ -58,6 +58,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getNamespace().getValue())); } + if (request.getRequestType() != null) { + target = + target.queryParam( + "requestType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRequestType().getValue())); + } + if (request.getDisplayName() != null) { target = target.queryParam( diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsInternalConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsInternalConverter.java index 0df91d791c..ce0471efc7 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsInternalConverter.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccCapacityRequestsInternalConverter.java @@ -79,6 +79,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDisplayName())); } + if (request.getRequestType() != null) { + target = + target.queryParam( + "requestType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRequestType().getValue())); + } + if (request.getId() != null) { target = target.queryParam( diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccOverviewsConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccOverviewsConverter.java new file mode 100644 index 0000000000..426ac1d939 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/ListOccOverviewsConverter.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.capacitymanagement.model.*; +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccOverviewsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListOccOverviewsConverter.class); + + public static com.oracle.bmc.capacitymanagement.requests.ListOccOverviewsRequest + interceptRequest( + com.oracle.bmc.capacitymanagement.requests.ListOccOverviewsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.capacitymanagement.requests.ListOccOverviewsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespace().getValue(), "namespace must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20231107") + .path("namespace") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespace().getValue())) + .path("occOverview"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getFrom() != null) { + target = + target.queryParam( + "from", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFrom())); + } + + if (request.getTo() != null) { + target = + target.queryParam( + "to", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTo())); + } + + if (request.getWorkloadType() != null) { + target = + target.queryParam( + "workloadType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkloadType())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .ListOccOverviewsResponse>() { + @Override + public com.oracle.bmc.capacitymanagement.responses + .ListOccOverviewsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccOverviewCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse + .Builder + builder = + com.oracle.bmc.capacitymanagement.responses + .ListOccOverviewsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occOverviewCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.capacitymanagement.responses.ListOccOverviewsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/PatchInternalOccCapacityRequestConverter.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/PatchInternalOccCapacityRequestConverter.java new file mode 100644 index 0000000000..6a741b9c36 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/internal/http/PatchInternalOccCapacityRequestConverter.java @@ -0,0 +1,166 @@ +/** + * 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.capacitymanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.capacitymanagement.model.*; +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PatchInternalOccCapacityRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PatchInternalOccCapacityRequestConverter.class); + + public static com.oracle.bmc.capacitymanagement.requests.PatchInternalOccCapacityRequestRequest + interceptRequest( + com.oracle.bmc.capacitymanagement.requests + .PatchInternalOccCapacityRequestRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.capacitymanagement.requests.PatchInternalOccCapacityRequestRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getPatchOccCapacityRequestDetails(), + "patchOccCapacityRequestDetails is required"); + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20231107") + .path("internal") + .path("occCapacityRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccCapacityRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse>() { + @Override + public com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.capacitymanagement.responses.PatchInternalOccCapacityRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequest>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequest + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequest + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequest> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse.Builder + builder = + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occCapacityRequest(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.capacitymanagement.responses + .PatchInternalOccCapacityRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java index f19c6e5689..5ad91cbc07 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java @@ -29,6 +29,7 @@ public final class CreateOccCapacityRequestDetails "namespace", "region", "displayName", + "requestType", "description", "freeformTags", "definedTags", @@ -44,6 +45,7 @@ public CreateOccCapacityRequestDetails( Namespace namespace, String region, String displayName, + OccCapacityRequest.RequestType requestType, String description, java.util.Map freeformTags, java.util.Map> definedTags, @@ -58,6 +60,7 @@ public CreateOccCapacityRequestDetails( this.namespace = namespace; this.region = region; this.displayName = displayName; + this.requestType = requestType; this.description = description; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -150,6 +153,22 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private OccCapacityRequest.RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @param requestType the value to set + * @return this builder + **/ + public Builder requestType(OccCapacityRequest.RequestType requestType) { + this.requestType = requestType; + this.__explicitlySet__.add("requestType"); + return this; + } /** * Meaningful text about the capacity request. **/ @@ -299,6 +318,7 @@ public CreateOccCapacityRequestDetails build() { this.namespace, this.region, this.displayName, + this.requestType, this.description, this.freeformTags, this.definedTags, @@ -330,6 +350,9 @@ public Builder copy(CreateOccCapacityRequestDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("requestType")) { + this.requestType(model.getRequestType()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -439,6 +462,20 @@ public String getDisplayName() { return displayName; } + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private final OccCapacityRequest.RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @return the value + **/ + public OccCapacityRequest.RequestType getRequestType() { + return requestType; + } + /** * Meaningful text about the capacity request. **/ @@ -614,6 +651,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", namespace=").append(String.valueOf(this.namespace)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", requestType=").append(String.valueOf(this.requestType)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -643,6 +681,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.namespace, other.namespace) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.requestType, other.requestType) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -670,6 +709,7 @@ public int hashCode() { result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.requestType == null ? 43 : this.requestType.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()); diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java index cb151ea1e2..0c66bb7584 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java @@ -80,6 +80,7 @@ public Builder toBuilder() { **/ public enum FormatVersion { V1("V1"), + V2("V2"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java index 86957b42b6..5d6fb04a60 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java @@ -327,13 +327,13 @@ public Builder systemTags(java.util.Map> s return this; } /** - * Details about capacity available for different resources in catalog. + * Details about capacity available for different resources in catalog. **/ @com.fasterxml.jackson.annotation.JsonProperty("details") private java.util.List details; /** - * Details about capacity available for different resources in catalog. + * Details about capacity available for different resources in catalog. * @param details the value to set * @return this builder **/ @@ -758,13 +758,13 @@ public java.util.Map> getSystemTags() { } /** - * Details about capacity available for different resources in catalog. + * Details about capacity available for different resources in catalog. **/ @com.fasterxml.jackson.annotation.JsonProperty("details") private final java.util.List details; /** - * Details about capacity available for different resources in catalog. + * Details about capacity available for different resources in catalog. * @return the value **/ public java.util.List getDetails() { diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java index c05130bb90..9e1cc2ece4 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java @@ -126,13 +126,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * An user-friendly name for the availability catalog. Does not have to be unique, and is changeable. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * An user-friendly name for the availability catalog. Does not have to be unique, and is changeable. Avoid entering confidential information. * @param displayName the value to set * @return this builder **/ @@ -458,13 +458,13 @@ public String getCompartmentId() { } /** - * An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * An user-friendly name for the availability catalog. Does not have to be unique, and is changeable. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * An user-friendly name for the availability catalog. Does not have to be unique, and is changeable. Avoid entering confidential information. * @return the value **/ public String getDisplayName() { diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java index 71f043805e..41e335188b 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java @@ -31,18 +31,24 @@ public final class OccAvailabilitySummary "workloadType", "resourceName", "availableQuantity", - "unit" + "totalAvailableQuantity", + "demandedQuantity", + "unit", + "systemTags" }) public OccAvailabilitySummary( String catalogId, Namespace namespace, java.util.Date dateFinalCustomerOrder, java.util.Date dateExpectedCapacityHandover, - ResourceType resourceType, - WorkloadType workloadType, + String resourceType, + String workloadType, String resourceName, Long availableQuantity, - String unit) { + Long totalAvailableQuantity, + Long demandedQuantity, + String unit, + java.util.Map> systemTags) { super(); this.catalogId = catalogId; this.namespace = namespace; @@ -52,7 +58,10 @@ public OccAvailabilitySummary( this.workloadType = workloadType; this.resourceName = resourceName; this.availableQuantity = availableQuantity; + this.totalAvailableQuantity = totalAvailableQuantity; + this.demandedQuantity = demandedQuantity; this.unit = unit; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -127,14 +136,14 @@ public Builder dateExpectedCapacityHandover(java.util.Date dateExpectedCapacityH * The different types of resources against which customers can place capacity requests. **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") - private ResourceType resourceType; + private String resourceType; /** * The different types of resources against which customers can place capacity requests. * @param resourceType the value to set * @return this builder **/ - public Builder resourceType(ResourceType resourceType) { + public Builder resourceType(String resourceType) { this.resourceType = resourceType; this.__explicitlySet__.add("resourceType"); return this; @@ -143,14 +152,14 @@ public Builder resourceType(ResourceType resourceType) { * The type of workload (Generic/ROW). **/ @com.fasterxml.jackson.annotation.JsonProperty("workloadType") - private WorkloadType workloadType; + private String workloadType; /** * The type of workload (Generic/ROW). * @param workloadType the value to set * @return this builder **/ - public Builder workloadType(WorkloadType workloadType) { + public Builder workloadType(String workloadType) { this.workloadType = workloadType; this.__explicitlySet__.add("workloadType"); return this; @@ -172,13 +181,13 @@ public Builder resourceName(String resourceName) { return this; } /** - * The quantity of available resource that the customer can request. + * The quantity of resource currently available that the customer can request. **/ @com.fasterxml.jackson.annotation.JsonProperty("availableQuantity") private Long availableQuantity; /** - * The quantity of available resource that the customer can request. + * The quantity of resource currently available that the customer can request. * @param availableQuantity the value to set * @return this builder **/ @@ -187,6 +196,38 @@ public Builder availableQuantity(Long availableQuantity) { this.__explicitlySet__.add("availableQuantity"); return this; } + /** + * The total quantity of resource that the customer can request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalAvailableQuantity") + private Long totalAvailableQuantity; + + /** + * The total quantity of resource that the customer can request. + * @param totalAvailableQuantity the value to set + * @return this builder + **/ + public Builder totalAvailableQuantity(Long totalAvailableQuantity) { + this.totalAvailableQuantity = totalAvailableQuantity; + this.__explicitlySet__.add("totalAvailableQuantity"); + return this; + } + /** + * The quantity of resource currently demanded by the customer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("demandedQuantity") + private Long demandedQuantity; + + /** + * The quantity of resource currently demanded by the customer. + * @param demandedQuantity the value to set + * @return this builder + **/ + public Builder demandedQuantity(Long demandedQuantity) { + this.demandedQuantity = demandedQuantity; + this.__explicitlySet__.add("demandedQuantity"); + return this; + } /** * The unit in which the resource available is measured. **/ @@ -203,6 +244,26 @@ public Builder unit(String unit) { this.__explicitlySet__.add("unit"); return this; } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -218,7 +279,10 @@ public OccAvailabilitySummary build() { this.workloadType, this.resourceName, this.availableQuantity, - this.unit); + this.totalAvailableQuantity, + this.demandedQuantity, + this.unit, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -251,9 +315,18 @@ public Builder copy(OccAvailabilitySummary model) { if (model.wasPropertyExplicitlySet("availableQuantity")) { this.availableQuantity(model.getAvailableQuantity()); } + if (model.wasPropertyExplicitlySet("totalAvailableQuantity")) { + this.totalAvailableQuantity(model.getTotalAvailableQuantity()); + } + if (model.wasPropertyExplicitlySet("demandedQuantity")) { + this.demandedQuantity(model.getDemandedQuantity()); + } if (model.wasPropertyExplicitlySet("unit")) { this.unit(model.getUnit()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -327,128 +400,31 @@ public java.util.Date getDateExpectedCapacityHandover() { return dateExpectedCapacityHandover; } - /** - * The different types of resources against which customers can place capacity requests. - **/ - public enum ResourceType { - ServerHw("SERVER_HW"), - CapacityConstraint("CAPACITY_CONSTRAINT"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ResourceType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ResourceType v : ResourceType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ResourceType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ResourceType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ResourceType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** * The different types of resources against which customers can place capacity requests. **/ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") - private final ResourceType resourceType; + private final String resourceType; /** * The different types of resources against which customers can place capacity requests. * @return the value **/ - public ResourceType getResourceType() { + public String getResourceType() { return resourceType; } - /** - * The type of workload (Generic/ROW). - **/ - public enum WorkloadType { - Generic("GENERIC"), - Row("ROW"), - UsProd("US_PROD"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(WorkloadType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (WorkloadType v : WorkloadType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - WorkloadType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkloadType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'WorkloadType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** * The type of workload (Generic/ROW). **/ @com.fasterxml.jackson.annotation.JsonProperty("workloadType") - private final WorkloadType workloadType; + private final String workloadType; /** * The type of workload (Generic/ROW). * @return the value **/ - public WorkloadType getWorkloadType() { + public String getWorkloadType() { return workloadType; } @@ -467,19 +443,47 @@ public String getResourceName() { } /** - * The quantity of available resource that the customer can request. + * The quantity of resource currently available that the customer can request. **/ @com.fasterxml.jackson.annotation.JsonProperty("availableQuantity") private final Long availableQuantity; /** - * The quantity of available resource that the customer can request. + * The quantity of resource currently available that the customer can request. * @return the value **/ public Long getAvailableQuantity() { return availableQuantity; } + /** + * The total quantity of resource that the customer can request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalAvailableQuantity") + private final Long totalAvailableQuantity; + + /** + * The total quantity of resource that the customer can request. + * @return the value + **/ + public Long getTotalAvailableQuantity() { + return totalAvailableQuantity; + } + + /** + * The quantity of resource currently demanded by the customer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("demandedQuantity") + private final Long demandedQuantity; + + /** + * The quantity of resource currently demanded by the customer. + * @return the value + **/ + public Long getDemandedQuantity() { + return demandedQuantity; + } + /** * The unit in which the resource available is measured. **/ @@ -494,6 +498,24 @@ public String getUnit() { return unit; } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -517,7 +539,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", workloadType=").append(String.valueOf(this.workloadType)); sb.append(", resourceName=").append(String.valueOf(this.resourceName)); sb.append(", availableQuantity=").append(String.valueOf(this.availableQuantity)); + sb.append(", totalAvailableQuantity=").append(String.valueOf(this.totalAvailableQuantity)); + sb.append(", demandedQuantity=").append(String.valueOf(this.demandedQuantity)); sb.append(", unit=").append(String.valueOf(this.unit)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -542,7 +567,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.workloadType, other.workloadType) && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.availableQuantity, other.availableQuantity) + && java.util.Objects.equals( + this.totalAvailableQuantity, other.totalAvailableQuantity) + && java.util.Objects.equals(this.demandedQuantity, other.demandedQuantity) && java.util.Objects.equals(this.unit, other.unit) + && java.util.Objects.equals(this.systemTags, other.systemTags) && super.equals(other); } @@ -568,7 +597,16 @@ public int hashCode() { result = (result * PRIME) + (this.availableQuantity == null ? 43 : this.availableQuantity.hashCode()); + result = + (result * PRIME) + + (this.totalAvailableQuantity == null + ? 43 + : this.totalAvailableQuantity.hashCode()); + result = + (result * PRIME) + + (this.demandedQuantity == null ? 43 : this.demandedQuantity.hashCode()); result = (result * PRIME) + (this.unit == null ? 43 : this.unit.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java index 9b68161a50..d5a795e832 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java @@ -30,6 +30,7 @@ public final class OccCapacityRequest extends com.oracle.bmc.http.internal.Expli "description", "namespace", "occCustomerGroupId", + "requestType", "region", "availabilityDomain", "dateExpectedCapacityHandover", @@ -51,6 +52,7 @@ public OccCapacityRequest( String description, Namespace namespace, String occCustomerGroupId, + RequestType requestType, String region, String availabilityDomain, java.util.Date dateExpectedCapacityHandover, @@ -71,6 +73,7 @@ public OccCapacityRequest( this.description = description; this.namespace = namespace; this.occCustomerGroupId = occCustomerGroupId; + this.requestType = requestType; this.region = region; this.availabilityDomain = availabilityDomain; this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; @@ -201,6 +204,22 @@ public Builder occCustomerGroupId(String occCustomerGroupId) { this.__explicitlySet__.add("occCustomerGroupId"); return this; } + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @param requestType the value to set + * @return this builder + **/ + public Builder requestType(RequestType requestType) { + this.requestType = requestType; + this.__explicitlySet__.add("requestType"); + return this; + } /** * The name of the region for which the capacity request was made. **/ @@ -420,6 +439,7 @@ public OccCapacityRequest build() { this.description, this.namespace, this.occCustomerGroupId, + this.requestType, this.region, this.availabilityDomain, this.dateExpectedCapacityHandover, @@ -461,6 +481,9 @@ public Builder copy(OccCapacityRequest model) { if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { this.occCustomerGroupId(model.getOccCustomerGroupId()); } + if (model.wasPropertyExplicitlySet("requestType")) { + this.requestType(model.getRequestType()); + } if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } @@ -612,6 +635,68 @@ public String getOccCustomerGroupId() { return occCustomerGroupId; } + /** + * Type of Capacity Request(New or Transfer) + **/ + public enum RequestType { + New("NEW"), + Transfer("TRANSFER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RequestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RequestType v : RequestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RequestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RequestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RequestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private final RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @return the value + **/ + public RequestType getRequestType() { + return requestType; + } + /** * The name of the region for which the capacity request was made. **/ @@ -920,6 +1005,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", namespace=").append(String.valueOf(this.namespace)); sb.append(", occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", requestType=").append(String.valueOf(this.requestType)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", dateExpectedCapacityHandover=") @@ -955,6 +1041,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.namespace, other.namespace) && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.requestType, other.requestType) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( @@ -992,6 +1079,7 @@ public int hashCode() { + (this.occCustomerGroupId == null ? 43 : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.requestType == null ? 43 : this.requestType.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java index 2778aaf9f3..c254be87fe 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java @@ -15,57 +15,300 @@ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "resourceType", - defaultImpl = OccCapacityRequestBaseDetails.class +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCapacityRequestBaseDetails.Builder.class ) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = OccCapacityRequestComputeDetails.class, - name = "SERVER_HW" - ) -}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class OccCapacityRequestBaseDetails +public final class OccCapacityRequestBaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "resourceType", "workloadType", + "sourceWorkloadType", "expectedHandoverQuantity", "dateExpectedHandover", "actualHandoverQuantity", - "dateActualHandover" + "dateActualHandover", + "resourceName", + "demandQuantity" }) - protected OccCapacityRequestBaseDetails( - OccAvailabilitySummary.WorkloadType workloadType, + public OccCapacityRequestBaseDetails( + String resourceType, + String workloadType, + String sourceWorkloadType, Long expectedHandoverQuantity, java.util.Date dateExpectedHandover, Long actualHandoverQuantity, - java.util.Date dateActualHandover) { + java.util.Date dateActualHandover, + String resourceName, + Long demandQuantity) { super(); + this.resourceType = resourceType; this.workloadType = workloadType; + this.sourceWorkloadType = sourceWorkloadType; this.expectedHandoverQuantity = expectedHandoverQuantity; this.dateExpectedHandover = dateExpectedHandover; this.actualHandoverQuantity = actualHandoverQuantity; this.dateActualHandover = dateActualHandover; + this.resourceName = resourceName; + this.demandQuantity = demandQuantity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The type of the resource against which the user wants to place a capacity request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * The type of the resource against which the user wants to place a capacity request. + * @param resourceType the value to set + * @return this builder + **/ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * The type of the workload (Generic/ROW). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private String workloadType; + + /** + * The type of the workload (Generic/ROW). + * @param workloadType the value to set + * @return this builder + **/ + public Builder workloadType(String workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** + * The WorkloadType from where capacity request are to be transferred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceWorkloadType") + private String sourceWorkloadType; + + /** + * The WorkloadType from where capacity request are to be transferred. + * @param sourceWorkloadType the value to set + * @return this builder + **/ + public Builder sourceWorkloadType(String sourceWorkloadType) { + this.sourceWorkloadType = sourceWorkloadType; + this.__explicitlySet__.add("sourceWorkloadType"); + return this; + } + /** + * The incremental quantity of resources supplied as the provisioning is underway. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("expectedHandoverQuantity") + private Long expectedHandoverQuantity; + + /** + * The incremental quantity of resources supplied as the provisioning is underway. + * @param expectedHandoverQuantity the value to set + * @return this builder + **/ + public Builder expectedHandoverQuantity(Long expectedHandoverQuantity) { + this.expectedHandoverQuantity = expectedHandoverQuantity; + this.__explicitlySet__.add("expectedHandoverQuantity"); + return this; + } + /** + * The date on which the latest increment to supplied quantity of resources was delivered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedHandover") + private java.util.Date dateExpectedHandover; + + /** + * The date on which the latest increment to supplied quantity of resources was delivered. + * @param dateExpectedHandover the value to set + * @return this builder + **/ + public Builder dateExpectedHandover(java.util.Date dateExpectedHandover) { + this.dateExpectedHandover = dateExpectedHandover; + this.__explicitlySet__.add("dateExpectedHandover"); + return this; + } + /** + * The actual handed over quantity of resources at the time of request resolution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actualHandoverQuantity") + private Long actualHandoverQuantity; + + /** + * The actual handed over quantity of resources at the time of request resolution. + * @param actualHandoverQuantity the value to set + * @return this builder + **/ + public Builder actualHandoverQuantity(Long actualHandoverQuantity) { + this.actualHandoverQuantity = actualHandoverQuantity; + this.__explicitlySet__.add("actualHandoverQuantity"); + return this; + } + /** + * The date on which the actual handover quantity of resources is delivered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dateActualHandover") + private java.util.Date dateActualHandover; + + /** + * The date on which the actual handover quantity of resources is delivered. + * @param dateActualHandover the value to set + * @return this builder + **/ + public Builder dateActualHandover(java.util.Date dateActualHandover) { + this.dateActualHandover = dateActualHandover; + this.__explicitlySet__.add("dateActualHandover"); + return this; + } + /** + * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * The number of compute server's with name required by the user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") + private Long demandQuantity; + + /** + * The number of compute server's with name required by the user. + * @param demandQuantity the value to set + * @return this builder + **/ + public Builder demandQuantity(Long demandQuantity) { + this.demandQuantity = demandQuantity; + this.__explicitlySet__.add("demandQuantity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCapacityRequestBaseDetails build() { + OccCapacityRequestBaseDetails model = + new OccCapacityRequestBaseDetails( + this.resourceType, + this.workloadType, + this.sourceWorkloadType, + this.expectedHandoverQuantity, + this.dateExpectedHandover, + this.actualHandoverQuantity, + this.dateActualHandover, + this.resourceName, + this.demandQuantity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCapacityRequestBaseDetails model) { + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("sourceWorkloadType")) { + this.sourceWorkloadType(model.getSourceWorkloadType()); + } + if (model.wasPropertyExplicitlySet("expectedHandoverQuantity")) { + this.expectedHandoverQuantity(model.getExpectedHandoverQuantity()); + } + if (model.wasPropertyExplicitlySet("dateExpectedHandover")) { + this.dateExpectedHandover(model.getDateExpectedHandover()); + } + if (model.wasPropertyExplicitlySet("actualHandoverQuantity")) { + this.actualHandoverQuantity(model.getActualHandoverQuantity()); + } + if (model.wasPropertyExplicitlySet("dateActualHandover")) { + this.dateActualHandover(model.getDateActualHandover()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("demandQuantity")) { + this.demandQuantity(model.getDemandQuantity()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The type of the resource against which the user wants to place a capacity request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * The type of the resource against which the user wants to place a capacity request. + * @return the value + **/ + public String getResourceType() { + return resourceType; } /** * The type of the workload (Generic/ROW). **/ @com.fasterxml.jackson.annotation.JsonProperty("workloadType") - private final OccAvailabilitySummary.WorkloadType workloadType; + private final String workloadType; /** * The type of the workload (Generic/ROW). * @return the value **/ - public OccAvailabilitySummary.WorkloadType getWorkloadType() { + public String getWorkloadType() { return workloadType; } + /** + * The WorkloadType from where capacity request are to be transferred. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceWorkloadType") + private final String sourceWorkloadType; + + /** + * The WorkloadType from where capacity request are to be transferred. + * @return the value + **/ + public String getSourceWorkloadType() { + return sourceWorkloadType; + } + /** * The incremental quantity of resources supplied as the provisioning is underway. **/ @@ -122,6 +365,34 @@ public java.util.Date getDateActualHandover() { return dateActualHandover; } + /** + * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * The number of compute server's with name required by the user. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") + private final Long demandQuantity; + + /** + * The number of compute server's with name required by the user. + * @return the value + **/ + public Long getDemandQuantity() { + return demandQuantity; + } + @Override public String toString() { return this.toString(true); @@ -136,12 +407,16 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OccCapacityRequestBaseDetails("); sb.append("super=").append(super.toString()); - sb.append("workloadType=").append(String.valueOf(this.workloadType)); + sb.append("resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", sourceWorkloadType=").append(String.valueOf(this.sourceWorkloadType)); sb.append(", expectedHandoverQuantity=") .append(String.valueOf(this.expectedHandoverQuantity)); sb.append(", dateExpectedHandover=").append(String.valueOf(this.dateExpectedHandover)); sb.append(", actualHandoverQuantity=").append(String.valueOf(this.actualHandoverQuantity)); sb.append(", dateActualHandover=").append(String.valueOf(this.dateActualHandover)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", demandQuantity=").append(String.valueOf(this.demandQuantity)); sb.append(")"); return sb.toString(); } @@ -156,13 +431,17 @@ public boolean equals(Object o) { } OccCapacityRequestBaseDetails other = (OccCapacityRequestBaseDetails) o; - return java.util.Objects.equals(this.workloadType, other.workloadType) + return java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.sourceWorkloadType, other.sourceWorkloadType) && java.util.Objects.equals( this.expectedHandoverQuantity, other.expectedHandoverQuantity) && java.util.Objects.equals(this.dateExpectedHandover, other.dateExpectedHandover) && java.util.Objects.equals( this.actualHandoverQuantity, other.actualHandoverQuantity) && java.util.Objects.equals(this.dateActualHandover, other.dateActualHandover) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.demandQuantity, other.demandQuantity) && super.equals(other); } @@ -170,7 +449,13 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = + (result * PRIME) + + (this.sourceWorkloadType == null + ? 43 + : this.sourceWorkloadType.hashCode()); result = (result * PRIME) + (this.expectedHandoverQuantity == null @@ -191,55 +476,11 @@ public int hashCode() { + (this.dateActualHandover == null ? 43 : this.dateActualHandover.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = + (result * PRIME) + + (this.demandQuantity == null ? 43 : this.demandQuantity.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } - - /** - * The type of the resource against which the user wants to place a capacity request. - **/ - public enum ResourceType { - ServerHw("SERVER_HW"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ResourceType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ResourceType v : ResourceType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ResourceType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ResourceType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ResourceType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java deleted file mode 100644 index a2871664b9..0000000000 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java +++ /dev/null @@ -1,256 +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.capacitymanagement.model; - -/** - * The details about the compute servers required for creating a capacity request. - *
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = OccCapacityRequestComputeDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "resourceType" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class OccCapacityRequestComputeDetails extends OccCapacityRequestBaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("workloadType") - private OccAvailabilitySummary.WorkloadType workloadType; - - public Builder workloadType(OccAvailabilitySummary.WorkloadType workloadType) { - this.workloadType = workloadType; - this.__explicitlySet__.add("workloadType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("expectedHandoverQuantity") - private Long expectedHandoverQuantity; - - public Builder expectedHandoverQuantity(Long expectedHandoverQuantity) { - this.expectedHandoverQuantity = expectedHandoverQuantity; - this.__explicitlySet__.add("expectedHandoverQuantity"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedHandover") - private java.util.Date dateExpectedHandover; - - public Builder dateExpectedHandover(java.util.Date dateExpectedHandover) { - this.dateExpectedHandover = dateExpectedHandover; - this.__explicitlySet__.add("dateExpectedHandover"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("actualHandoverQuantity") - private Long actualHandoverQuantity; - - public Builder actualHandoverQuantity(Long actualHandoverQuantity) { - this.actualHandoverQuantity = actualHandoverQuantity; - this.__explicitlySet__.add("actualHandoverQuantity"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dateActualHandover") - private java.util.Date dateActualHandover; - - public Builder dateActualHandover(java.util.Date dateActualHandover) { - this.dateActualHandover = dateActualHandover; - this.__explicitlySet__.add("dateActualHandover"); - return this; - } - /** - * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resourceName") - private String resourceName; - - /** - * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - * @param resourceName the value to set - * @return this builder - **/ - public Builder resourceName(String resourceName) { - this.resourceName = resourceName; - this.__explicitlySet__.add("resourceName"); - return this; - } - /** - * The number of compute server's with name required by the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") - private Long demandQuantity; - - /** - * The number of compute server's with name required by the user. - * @param demandQuantity the value to set - * @return this builder - **/ - public Builder demandQuantity(Long demandQuantity) { - this.demandQuantity = demandQuantity; - this.__explicitlySet__.add("demandQuantity"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public OccCapacityRequestComputeDetails build() { - OccCapacityRequestComputeDetails model = - new OccCapacityRequestComputeDetails( - this.workloadType, - this.expectedHandoverQuantity, - this.dateExpectedHandover, - this.actualHandoverQuantity, - this.dateActualHandover, - this.resourceName, - this.demandQuantity); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(OccCapacityRequestComputeDetails model) { - if (model.wasPropertyExplicitlySet("workloadType")) { - this.workloadType(model.getWorkloadType()); - } - if (model.wasPropertyExplicitlySet("expectedHandoverQuantity")) { - this.expectedHandoverQuantity(model.getExpectedHandoverQuantity()); - } - if (model.wasPropertyExplicitlySet("dateExpectedHandover")) { - this.dateExpectedHandover(model.getDateExpectedHandover()); - } - if (model.wasPropertyExplicitlySet("actualHandoverQuantity")) { - this.actualHandoverQuantity(model.getActualHandoverQuantity()); - } - if (model.wasPropertyExplicitlySet("dateActualHandover")) { - this.dateActualHandover(model.getDateActualHandover()); - } - if (model.wasPropertyExplicitlySet("resourceName")) { - this.resourceName(model.getResourceName()); - } - if (model.wasPropertyExplicitlySet("demandQuantity")) { - this.demandQuantity(model.getDemandQuantity()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public OccCapacityRequestComputeDetails( - OccAvailabilitySummary.WorkloadType workloadType, - Long expectedHandoverQuantity, - java.util.Date dateExpectedHandover, - Long actualHandoverQuantity, - java.util.Date dateActualHandover, - String resourceName, - Long demandQuantity) { - super( - workloadType, - expectedHandoverQuantity, - dateExpectedHandover, - actualHandoverQuantity, - dateActualHandover); - this.resourceName = resourceName; - this.demandQuantity = demandQuantity; - } - - /** - * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resourceName") - private final String resourceName; - - /** - * The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. - * @return the value - **/ - public String getResourceName() { - return resourceName; - } - - /** - * The number of compute server's with name required by the user. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") - private final Long demandQuantity; - - /** - * The number of compute server's with name required by the user. - * @return the value - **/ - public Long getDemandQuantity() { - return demandQuantity; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("OccCapacityRequestComputeDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", resourceName=").append(String.valueOf(this.resourceName)); - sb.append(", demandQuantity=").append(String.valueOf(this.demandQuantity)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof OccCapacityRequestComputeDetails)) { - return false; - } - - OccCapacityRequestComputeDetails other = (OccCapacityRequestComputeDetails) o; - return java.util.Objects.equals(this.resourceName, other.resourceName) - && java.util.Objects.equals(this.demandQuantity, other.demandQuantity) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = - (result * PRIME) - + (this.demandQuantity == null ? 43 : this.demandQuantity.hashCode()); - return result; - } -} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java index 56798b17bf..9dff985e8d 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java @@ -35,6 +35,7 @@ public final class OccCapacityRequestSummary "availabilityDomain", "dateExpectedCapacityHandover", "requestState", + "requestType", "timeCreated", "timeUpdated", "lifecycleState", @@ -55,6 +56,7 @@ public OccCapacityRequestSummary( String availabilityDomain, java.util.Date dateExpectedCapacityHandover, OccCapacityRequest.RequestState requestState, + OccCapacityRequest.RequestType requestType, java.util.Date timeCreated, java.util.Date timeUpdated, OccCapacityRequest.LifecycleState lifecycleState, @@ -74,6 +76,7 @@ public OccCapacityRequestSummary( this.availabilityDomain = availabilityDomain; this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; this.requestState = requestState; + this.requestType = requestType; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -263,6 +266,22 @@ public Builder requestState(OccCapacityRequest.RequestState requestState) { this.__explicitlySet__.add("requestState"); return this; } + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private OccCapacityRequest.RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @param requestType the value to set + * @return this builder + **/ + public Builder requestType(OccCapacityRequest.RequestType requestType) { + this.requestType = requestType; + this.__explicitlySet__.add("requestType"); + return this; + } /** * The time when the capacity request was created. **/ @@ -406,6 +425,7 @@ public OccCapacityRequestSummary build() { this.availabilityDomain, this.dateExpectedCapacityHandover, this.requestState, + this.requestType, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -454,6 +474,9 @@ public Builder copy(OccCapacityRequestSummary model) { if (model.wasPropertyExplicitlySet("requestState")) { this.requestState(model.getRequestState()); } + if (model.wasPropertyExplicitlySet("requestType")) { + this.requestType(model.getRequestType()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -646,6 +669,20 @@ public OccCapacityRequest.RequestState getRequestState() { return requestState; } + /** + * Type of Capacity Request(New or Transfer) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("requestType") + private final OccCapacityRequest.RequestType requestType; + + /** + * Type of Capacity Request(New or Transfer) + * @return the value + **/ + public OccCapacityRequest.RequestType getRequestType() { + return requestType; + } + /** * The time when the capacity request was created. **/ @@ -783,6 +820,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dateExpectedCapacityHandover=") .append(String.valueOf(this.dateExpectedCapacityHandover)); sb.append(", requestState=").append(String.valueOf(this.requestState)); + sb.append(", requestType=").append(String.valueOf(this.requestType)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -817,6 +855,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) && java.util.Objects.equals(this.requestState, other.requestState) + && java.util.Objects.equals(this.requestType, other.requestType) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -860,6 +899,7 @@ public int hashCode() { ? 43 : this.dateExpectedCapacityHandover.hashCode()); result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.hashCode()); + result = (result * PRIME) + (this.requestType == null ? 43 : this.requestType.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/AgentImageCollection.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewCollection.java similarity index 77% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java rename to bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewCollection.java index eeaf9efc8e..a916105ecf 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewCollection.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.capacitymanagement.model; /** - * Results of an ODMS Agent Image search. Contains AgentImageSummary items. - * + * A list representing response of overview API. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,15 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AgentImageCollection.Builder.class + builder = OccOverviewCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AgentImageCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class OccOverviewCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public AgentImageCollection(java.util.List items) { + public OccOverviewCollection(java.util.List items) { super(); this.items = items; } @@ -31,19 +31,17 @@ public AgentImageCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Items in collection. - * + * An array of overview summary. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Items in collection. - * + * An array of overview summary. * @param items the value to set * @return this builder **/ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -52,8 +50,8 @@ public Builder items(java.util.List items) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AgentImageCollection build() { - AgentImageCollection model = new AgentImageCollection(this.items); + public OccOverviewCollection build() { + OccOverviewCollection model = new OccOverviewCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,7 +59,7 @@ public AgentImageCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentImageCollection model) { + public Builder copy(OccOverviewCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -81,18 +79,16 @@ public Builder toBuilder() { } /** - * Items in collection. - * + * An array of overview summary. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Items in collection. - * + * An array of overview summary. * @return the value **/ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -108,7 +104,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentImageCollection("); + sb.append("OccOverviewCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -120,11 +116,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentImageCollection)) { + if (!(o instanceof OccOverviewCollection)) { return false; } - AgentImageCollection other = (AgentImageCollection) o; + OccOverviewCollection other = (OccOverviewCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewSummary.java new file mode 100644 index 0000000000..595c3ea88a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccOverviewSummary.java @@ -0,0 +1,605 @@ +/** + * 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.capacitymanagement.model; + +/** + * The overview summary is used to represent an array item that shall be used to represent the overview of the catalog resources along with their corresponding capacity requests. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccOverviewSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccOverviewSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "periodValue", + "resourceName", + "totalAvailable", + "totalDemanded", + "totalSupplied", + "totalRejected", + "totalCancelled", + "totalUnfulfilled", + "workloadTypeBreakdownBlob", + "capacityRequestsBlob", + "unit" + }) + public OccOverviewSummary( + String compartmentId, + String periodValue, + String resourceName, + Long totalAvailable, + Long totalDemanded, + Long totalSupplied, + Long totalRejected, + Long totalCancelled, + Long totalUnfulfilled, + String workloadTypeBreakdownBlob, + String capacityRequestsBlob, + String unit) { + super(); + this.compartmentId = compartmentId; + this.periodValue = periodValue; + this.resourceName = resourceName; + this.totalAvailable = totalAvailable; + this.totalDemanded = totalDemanded; + this.totalSupplied = totalSupplied; + this.totalRejected = totalRejected; + this.totalCancelled = totalCancelled; + this.totalUnfulfilled = totalUnfulfilled; + this.workloadTypeBreakdownBlob = workloadTypeBreakdownBlob; + this.capacityRequestsBlob = capacityRequestsBlob; + this.unit = unit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment from which the api call is made. This will be used for authorizing the request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment from which the api call is made. This will be used for authorizing the request. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The name of the month along with year for which this summary corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("periodValue") + private String periodValue; + + /** + * The name of the month along with year for which this summary corresponds to. + * @param periodValue the value to set + * @return this builder + **/ + public Builder periodValue(String periodValue) { + this.periodValue = periodValue; + this.__explicitlySet__.add("periodValue"); + return this; + } + /** + * The name of the resource for which we have aggregated the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the resource for which we have aggregated the value. + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalAvailable") + private Long totalAvailable; + + /** + * The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration. + * @param totalAvailable the value to set + * @return this builder + **/ + public Builder totalAvailable(Long totalAvailable) { + this.totalAvailable = totalAvailable; + this.__explicitlySet__.add("totalAvailable"); + return this; + } + /** + * The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalDemanded") + private Long totalDemanded; + + /** + * The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview. + * @param totalDemanded the value to set + * @return this builder + **/ + public Builder totalDemanded(Long totalDemanded) { + this.totalDemanded = totalDemanded; + this.__explicitlySet__.add("totalDemanded"); + return this; + } + /** + * The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSupplied") + private Long totalSupplied; + + /** + * The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration. + * @param totalSupplied the value to set + * @return this builder + **/ + public Builder totalSupplied(Long totalSupplied) { + this.totalSupplied = totalSupplied; + this.__explicitlySet__.add("totalSupplied"); + return this; + } + /** + * The quantity of the resource which is rejected by Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalRejected") + private Long totalRejected; + + /** + * The quantity of the resource which is rejected by Oracle. + * @param totalRejected the value to set + * @return this builder + **/ + public Builder totalRejected(Long totalRejected) { + this.totalRejected = totalRejected; + this.__explicitlySet__.add("totalRejected"); + return this; + } + /** + * The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCancelled") + private Long totalCancelled; + + /** + * The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values. + * @param totalCancelled the value to set + * @return this builder + **/ + public Builder totalCancelled(Long totalCancelled) { + this.totalCancelled = totalCancelled; + this.__explicitlySet__.add("totalCancelled"); + return this; + } + /** + * The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalUnfulfilled") + private Long totalUnfulfilled; + + /** + * The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up. + * @param totalUnfulfilled the value to set + * @return this builder + **/ + public Builder totalUnfulfilled(Long totalUnfulfilled) { + this.totalUnfulfilled = totalUnfulfilled; + this.__explicitlySet__.add("totalUnfulfilled"); + return this; + } + /** + * A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workloadTypeBreakdownBlob") + private String workloadTypeBreakdownBlob; + + /** + * A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types + * @param workloadTypeBreakdownBlob the value to set + * @return this builder + **/ + public Builder workloadTypeBreakdownBlob(String workloadTypeBreakdownBlob) { + this.workloadTypeBreakdownBlob = workloadTypeBreakdownBlob; + this.__explicitlySet__.add("workloadTypeBreakdownBlob"); + return this; + } + /** + * A raw json blob containing all the capacity requests corresponding to the resource name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityRequestsBlob") + private String capacityRequestsBlob; + + /** + * A raw json blob containing all the capacity requests corresponding to the resource name + * @param capacityRequestsBlob the value to set + * @return this builder + **/ + public Builder capacityRequestsBlob(String capacityRequestsBlob) { + this.capacityRequestsBlob = capacityRequestsBlob; + this.__explicitlySet__.add("capacityRequestsBlob"); + return this; + } + /** + * The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + /** + * The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured. + * @param unit the value to set + * @return this builder + **/ + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccOverviewSummary build() { + OccOverviewSummary model = + new OccOverviewSummary( + this.compartmentId, + this.periodValue, + this.resourceName, + this.totalAvailable, + this.totalDemanded, + this.totalSupplied, + this.totalRejected, + this.totalCancelled, + this.totalUnfulfilled, + this.workloadTypeBreakdownBlob, + this.capacityRequestsBlob, + this.unit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccOverviewSummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("periodValue")) { + this.periodValue(model.getPeriodValue()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("totalAvailable")) { + this.totalAvailable(model.getTotalAvailable()); + } + if (model.wasPropertyExplicitlySet("totalDemanded")) { + this.totalDemanded(model.getTotalDemanded()); + } + if (model.wasPropertyExplicitlySet("totalSupplied")) { + this.totalSupplied(model.getTotalSupplied()); + } + if (model.wasPropertyExplicitlySet("totalRejected")) { + this.totalRejected(model.getTotalRejected()); + } + if (model.wasPropertyExplicitlySet("totalCancelled")) { + this.totalCancelled(model.getTotalCancelled()); + } + if (model.wasPropertyExplicitlySet("totalUnfulfilled")) { + this.totalUnfulfilled(model.getTotalUnfulfilled()); + } + if (model.wasPropertyExplicitlySet("workloadTypeBreakdownBlob")) { + this.workloadTypeBreakdownBlob(model.getWorkloadTypeBreakdownBlob()); + } + if (model.wasPropertyExplicitlySet("capacityRequestsBlob")) { + this.capacityRequestsBlob(model.getCapacityRequestsBlob()); + } + if (model.wasPropertyExplicitlySet("unit")) { + this.unit(model.getUnit()); + } + 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 from which the api call is made. This will be used for authorizing the request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment from which the api call is made. This will be used for authorizing the request. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the month along with year for which this summary corresponds to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("periodValue") + private final String periodValue; + + /** + * The name of the month along with year for which this summary corresponds to. + * @return the value + **/ + public String getPeriodValue() { + return periodValue; + } + + /** + * The name of the resource for which we have aggregated the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the resource for which we have aggregated the value. + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalAvailable") + private final Long totalAvailable; + + /** + * The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration. + * @return the value + **/ + public Long getTotalAvailable() { + return totalAvailable; + } + + /** + * The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalDemanded") + private final Long totalDemanded; + + /** + * The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview. + * @return the value + **/ + public Long getTotalDemanded() { + return totalDemanded; + } + + /** + * The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSupplied") + private final Long totalSupplied; + + /** + * The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration. + * @return the value + **/ + public Long getTotalSupplied() { + return totalSupplied; + } + + /** + * The quantity of the resource which is rejected by Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalRejected") + private final Long totalRejected; + + /** + * The quantity of the resource which is rejected by Oracle. + * @return the value + **/ + public Long getTotalRejected() { + return totalRejected; + } + + /** + * The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalCancelled") + private final Long totalCancelled; + + /** + * The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values. + * @return the value + **/ + public Long getTotalCancelled() { + return totalCancelled; + } + + /** + * The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalUnfulfilled") + private final Long totalUnfulfilled; + + /** + * The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up. + * @return the value + **/ + public Long getTotalUnfulfilled() { + return totalUnfulfilled; + } + + /** + * A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workloadTypeBreakdownBlob") + private final String workloadTypeBreakdownBlob; + + /** + * A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types + * @return the value + **/ + public String getWorkloadTypeBreakdownBlob() { + return workloadTypeBreakdownBlob; + } + + /** + * A raw json blob containing all the capacity requests corresponding to the resource name + **/ + @com.fasterxml.jackson.annotation.JsonProperty("capacityRequestsBlob") + private final String capacityRequestsBlob; + + /** + * A raw json blob containing all the capacity requests corresponding to the resource name + * @return the value + **/ + public String getCapacityRequestsBlob() { + return capacityRequestsBlob; + } + + /** + * The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private final String unit; + + /** + * The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured. + * @return the value + **/ + public String getUnit() { + return unit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccOverviewSummary("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", periodValue=").append(String.valueOf(this.periodValue)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", totalAvailable=").append(String.valueOf(this.totalAvailable)); + sb.append(", totalDemanded=").append(String.valueOf(this.totalDemanded)); + sb.append(", totalSupplied=").append(String.valueOf(this.totalSupplied)); + sb.append(", totalRejected=").append(String.valueOf(this.totalRejected)); + sb.append(", totalCancelled=").append(String.valueOf(this.totalCancelled)); + sb.append(", totalUnfulfilled=").append(String.valueOf(this.totalUnfulfilled)); + sb.append(", workloadTypeBreakdownBlob=") + .append(String.valueOf(this.workloadTypeBreakdownBlob)); + sb.append(", capacityRequestsBlob=").append(String.valueOf(this.capacityRequestsBlob)); + sb.append(", unit=").append(String.valueOf(this.unit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccOverviewSummary)) { + return false; + } + + OccOverviewSummary other = (OccOverviewSummary) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.periodValue, other.periodValue) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.totalAvailable, other.totalAvailable) + && java.util.Objects.equals(this.totalDemanded, other.totalDemanded) + && java.util.Objects.equals(this.totalSupplied, other.totalSupplied) + && java.util.Objects.equals(this.totalRejected, other.totalRejected) + && java.util.Objects.equals(this.totalCancelled, other.totalCancelled) + && java.util.Objects.equals(this.totalUnfulfilled, other.totalUnfulfilled) + && java.util.Objects.equals( + this.workloadTypeBreakdownBlob, other.workloadTypeBreakdownBlob) + && java.util.Objects.equals(this.capacityRequestsBlob, other.capacityRequestsBlob) + && java.util.Objects.equals(this.unit, other.unit) + && 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.periodValue == null ? 43 : this.periodValue.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = + (result * PRIME) + + (this.totalAvailable == null ? 43 : this.totalAvailable.hashCode()); + result = + (result * PRIME) + + (this.totalDemanded == null ? 43 : this.totalDemanded.hashCode()); + result = + (result * PRIME) + + (this.totalSupplied == null ? 43 : this.totalSupplied.hashCode()); + result = + (result * PRIME) + + (this.totalRejected == null ? 43 : this.totalRejected.hashCode()); + result = + (result * PRIME) + + (this.totalCancelled == null ? 43 : this.totalCancelled.hashCode()); + result = + (result * PRIME) + + (this.totalUnfulfilled == null ? 43 : this.totalUnfulfilled.hashCode()); + result = + (result * PRIME) + + (this.workloadTypeBreakdownBlob == null + ? 43 + : this.workloadTypeBreakdownBlob.hashCode()); + result = + (result * PRIME) + + (this.capacityRequestsBlob == null + ? 43 + : this.capacityRequestsBlob.hashCode()); + result = (result * PRIME) + (this.unit == null ? 43 : this.unit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListInternalNamespaceOccOverviewsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListInternalNamespaceOccOverviewsRequest.java new file mode 100644 index 0000000000..14ef5570bb --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListInternalNamespaceOccOverviewsRequest.java @@ -0,0 +1,540 @@ +/** + * 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.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use ListInternalNamespaceOccOverviewsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListInternalNamespaceOccOverviewsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The namespace by which we would filter the list. + */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** + * The namespace by which we would filter the list. + */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The customer group ocid by which we would filter the list. + */ + private String occCustomerGroupId; + + /** + * The customer group ocid by which we would filter the list. + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + private String workloadType; + + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + public String getWorkloadType() { + return workloadType; + } + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date from; + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + public java.util.Date getFrom() { + return from; + } + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date to; + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + public java.util.Date getTo() { + return to; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + **/ + public enum SortBy { + PeriodValue("periodValue"), + ; + + 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. The default order for periodValue is chronological order(latest month item at the end). + * + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInternalNamespaceOccOverviewsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The namespace by which we would filter the list. + */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The customer group ocid by which we would filter the list. + */ + private String occCustomerGroupId = null; + + /** + * The customer group ocid by which we would filter the list. + * @param occCustomerGroupId the value to set + * @return this builder instance + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + return this; + } + + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + private String workloadType = null; + + /** + * Workload type using the resources in an availability catalog can be filtered. + * @param workloadType the value to set + * @return this builder instance + */ + public Builder workloadType(String workloadType) { + this.workloadType = workloadType; + return this; + } + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date from = null; + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + * @param from the value to set + * @return this builder instance + */ + public Builder from(java.util.Date from) { + this.from = from; + return this; + } + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date to = null; + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + * @param to the value to set + * @return this builder instance + */ + public Builder to(java.util.Date to) { + this.to = to; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListInternalNamespaceOccOverviewsRequest o) { + namespace(o.getNamespace()); + compartmentId(o.getCompartmentId()); + occCustomerGroupId(o.getOccCustomerGroupId()); + workloadType(o.getWorkloadType()); + from(o.getFrom()); + to(o.getTo()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListInternalNamespaceOccOverviewsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListInternalNamespaceOccOverviewsRequest + */ + public ListInternalNamespaceOccOverviewsRequest build() { + ListInternalNamespaceOccOverviewsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInternalNamespaceOccOverviewsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListInternalNamespaceOccOverviewsRequest + */ + public ListInternalNamespaceOccOverviewsRequest buildWithoutInvocationCallback() { + ListInternalNamespaceOccOverviewsRequest request = + new ListInternalNamespaceOccOverviewsRequest(); + request.namespace = namespace; + request.compartmentId = compartmentId; + request.occCustomerGroupId = occCustomerGroupId; + request.workloadType = workloadType; + request.from = from; + request.to = to; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListInternalNamespaceOccOverviewsRequest(namespace, compartmentId, occCustomerGroupId, workloadType, from, to, limit, page, opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .namespace(namespace) + .compartmentId(compartmentId) + .occCustomerGroupId(occCustomerGroupId) + .workloadType(workloadType) + .from(from) + .to(to) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(",workloadType=").append(String.valueOf(this.workloadType)); + sb.append(",from=").append(String.valueOf(this.from)); + sb.append(",to=").append(String.valueOf(this.to)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInternalNamespaceOccOverviewsRequest)) { + return false; + } + + ListInternalNamespaceOccOverviewsRequest other = + (ListInternalNamespaceOccOverviewsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.from, other.from) + && java.util.Objects.equals(this.to, other.to) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.from == null ? 43 : this.from.hashCode()); + result = (result * PRIME) + (this.to == null ? 43 : this.to.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java index c90bf93887..41e9406893 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java @@ -48,27 +48,23 @@ public String getResourceName() { /** * Resource type using which the capacity constraints of an availability catalog can be filtered. */ - private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType - resourceType; + private String resourceType; /** * Resource type using which the capacity constraints of an availability catalog can be filtered. */ - public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType - getResourceType() { + public String getResourceType() { return resourceType; } /** * Workload type using the resources in an availability catalog can be filtered. */ - private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType - workloadType; + private String workloadType; /** * Workload type using the resources in an availability catalog can be filtered. */ - public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType - getWorkloadType() { + public String getWorkloadType() { return workloadType; } /** @@ -225,17 +221,14 @@ public Builder resourceName(String resourceName) { /** * Resource type using which the capacity constraints of an availability catalog can be filtered. */ - private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType - resourceType = null; + private String resourceType = null; /** * Resource type using which the capacity constraints of an availability catalog can be filtered. * @param resourceType the value to set * @return this builder instance */ - public Builder resourceType( - com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType - resourceType) { + public Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } @@ -243,17 +236,14 @@ public Builder resourceType( /** * Workload type using the resources in an availability catalog can be filtered. */ - private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType - workloadType = null; + private String workloadType = null; /** * Workload type using the resources in an availability catalog can be filtered. * @param workloadType the value to set * @return this builder instance */ - public Builder workloadType( - com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType - workloadType) { + public Builder workloadType(String workloadType) { this.workloadType = workloadType; return this; } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java index d4f4511edf..d5e216adb8 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java @@ -67,6 +67,17 @@ public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { public String getDisplayName() { return displayName; } + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType requestType; + + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType getRequestType() { + return requestType; + } /** * A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission. */ @@ -259,6 +270,24 @@ public Builder displayName(String displayName) { return this; } + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType requestType = + null; + + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + * @param requestType the value to set + * @return this builder instance + */ + public Builder requestType( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType + requestType) { + this.requestType = requestType; + return this; + } + /** * A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission. */ @@ -388,6 +417,7 @@ public Builder copy(ListOccCapacityRequestsInternalRequest o) { occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); namespace(o.getNamespace()); displayName(o.getDisplayName()); + requestType(o.getRequestType()); id(o.getId()); limit(o.getLimit()); page(o.getPage()); @@ -432,6 +462,7 @@ public ListOccCapacityRequestsInternalRequest buildWithoutInvocationCallback() { request.occAvailabilityCatalogId = occAvailabilityCatalogId; request.namespace = namespace; request.displayName = displayName; + request.requestType = requestType; request.id = id; request.limit = limit; request.page = page; @@ -439,7 +470,7 @@ public ListOccCapacityRequestsInternalRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.sortBy = sortBy; return request; - // new ListOccCapacityRequestsInternalRequest(compartmentId, occCustomerGroupId, occAvailabilityCatalogId, namespace, displayName, id, limit, page, opcRequestId, sortOrder, sortBy); + // new ListOccCapacityRequestsInternalRequest(compartmentId, occCustomerGroupId, occAvailabilityCatalogId, namespace, displayName, requestType, id, limit, page, opcRequestId, sortOrder, sortBy); } } @@ -454,6 +485,7 @@ public Builder toBuilder() { .occAvailabilityCatalogId(occAvailabilityCatalogId) .namespace(namespace) .displayName(displayName) + .requestType(requestType) .id(id) .limit(limit) .page(page) @@ -481,6 +513,7 @@ public String toString() { .append(String.valueOf(this.occAvailabilityCatalogId)); sb.append(",namespace=").append(String.valueOf(this.namespace)); sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",requestType=").append(String.valueOf(this.requestType)); sb.append(",id=").append(String.valueOf(this.id)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -508,6 +541,7 @@ public boolean equals(Object o) { this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) && java.util.Objects.equals(this.namespace, other.namespace) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.requestType, other.requestType) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -535,6 +569,7 @@ public int hashCode() { : this.occAvailabilityCatalogId.hashCode()); result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.requestType == null ? 43 : this.requestType.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java index 5fb26a3905..3e8f7b7576 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java @@ -45,6 +45,17 @@ public String getOccAvailabilityCatalogId() { public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { return namespace; } + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType requestType; + + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType getRequestType() { + return requestType; + } /** * A filter to return only the resources that match the entire display name. The match is not case sensitive. */ @@ -218,6 +229,24 @@ public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace names return this; } + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType requestType = + null; + + /** + * A filter to return only the resources that match the request type. The match is not case sensitive. + * @param requestType the value to set + * @return this builder instance + */ + public Builder requestType( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.RequestType + requestType) { + this.requestType = requestType; + return this; + } + /** * A filter to return only the resources that match the entire display name. The match is not case sensitive. */ @@ -360,6 +389,7 @@ public Builder copy(ListOccCapacityRequestsRequest o) { compartmentId(o.getCompartmentId()); occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); namespace(o.getNamespace()); + requestType(o.getRequestType()); displayName(o.getDisplayName()); id(o.getId()); limit(o.getLimit()); @@ -402,6 +432,7 @@ public ListOccCapacityRequestsRequest buildWithoutInvocationCallback() { request.compartmentId = compartmentId; request.occAvailabilityCatalogId = occAvailabilityCatalogId; request.namespace = namespace; + request.requestType = requestType; request.displayName = displayName; request.id = id; request.limit = limit; @@ -410,7 +441,7 @@ public ListOccCapacityRequestsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.sortBy = sortBy; return request; - // new ListOccCapacityRequestsRequest(compartmentId, occAvailabilityCatalogId, namespace, displayName, id, limit, page, opcRequestId, sortOrder, sortBy); + // new ListOccCapacityRequestsRequest(compartmentId, occAvailabilityCatalogId, namespace, requestType, displayName, id, limit, page, opcRequestId, sortOrder, sortBy); } } @@ -423,6 +454,7 @@ public Builder toBuilder() { .compartmentId(compartmentId) .occAvailabilityCatalogId(occAvailabilityCatalogId) .namespace(namespace) + .requestType(requestType) .displayName(displayName) .id(id) .limit(limit) @@ -449,6 +481,7 @@ public String toString() { sb.append(",occAvailabilityCatalogId=") .append(String.valueOf(this.occAvailabilityCatalogId)); sb.append(",namespace=").append(String.valueOf(this.namespace)); + sb.append(",requestType=").append(String.valueOf(this.requestType)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",id=").append(String.valueOf(this.id)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -475,6 +508,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.requestType, other.requestType) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.limit, other.limit) @@ -497,6 +531,7 @@ public int hashCode() { ? 43 : this.occAvailabilityCatalogId.hashCode()); result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.requestType == null ? 43 : this.requestType.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccOverviewsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccOverviewsRequest.java new file mode 100644 index 0000000000..1bc96046db --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccOverviewsRequest.java @@ -0,0 +1,501 @@ +/** + * 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.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use ListOccOverviewsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccOverviewsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The namespace by which we would filter the list. + */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** + * The namespace by which we would filter the list. + */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date from; + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + public java.util.Date getFrom() { + return from; + } + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date to; + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + public java.util.Date getTo() { + return to; + } + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + private String workloadType; + + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + public String getWorkloadType() { + return workloadType; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + **/ + public enum SortBy { + PeriodValue("periodValue"), + ; + + 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. The default order for periodValue is chronological order(latest month item at the end). + * + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccOverviewsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The namespace by which we would filter the list. + */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date from = null; + + /** + * The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation. + * @param from the value to set + * @return this builder instance + */ + public Builder from(java.util.Date from) { + this.from = from; + return this; + } + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + */ + private java.util.Date to = null; + + /** + * The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation. + * @param to the value to set + * @return this builder instance + */ + public Builder to(java.util.Date to) { + this.to = to; + return this; + } + + /** + * Workload type using the resources in an availability catalog can be filtered. + */ + private String workloadType = null; + + /** + * Workload type using the resources in an availability catalog can be filtered. + * @param workloadType the value to set + * @return this builder instance + */ + public Builder workloadType(String workloadType) { + this.workloadType = workloadType; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come from {@code opc-next-page} header field of a previous response. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end). + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOccOverviewsRequest o) { + namespace(o.getNamespace()); + compartmentId(o.getCompartmentId()); + from(o.getFrom()); + to(o.getTo()); + workloadType(o.getWorkloadType()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccOverviewsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListOccOverviewsRequest + */ + public ListOccOverviewsRequest build() { + ListOccOverviewsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccOverviewsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListOccOverviewsRequest + */ + public ListOccOverviewsRequest buildWithoutInvocationCallback() { + ListOccOverviewsRequest request = new ListOccOverviewsRequest(); + request.namespace = namespace; + request.compartmentId = compartmentId; + request.from = from; + request.to = to; + request.workloadType = workloadType; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccOverviewsRequest(namespace, compartmentId, from, to, workloadType, limit, page, opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .namespace(namespace) + .compartmentId(compartmentId) + .from(from) + .to(to) + .workloadType(workloadType) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",from=").append(String.valueOf(this.from)); + sb.append(",to=").append(String.valueOf(this.to)); + sb.append(",workloadType=").append(String.valueOf(this.workloadType)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccOverviewsRequest)) { + return false; + } + + ListOccOverviewsRequest other = (ListOccOverviewsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.from, other.from) + && java.util.Objects.equals(this.to, other.to) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.from == null ? 43 : this.from.hashCode()); + result = (result * PRIME) + (this.to == null ? 43 : this.to.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchInternalOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchInternalOccCapacityRequestRequest.java new file mode 100644 index 0000000000..c1fa719046 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchInternalOccCapacityRequestRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use PatchInternalOccCapacityRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PatchInternalOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails> { + + /** + * Request to update the details of the capacity request. + */ + private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails; + + /** + * Request to update the details of the capacity request. + */ + public com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + getPatchOccCapacityRequestDetails() { + return patchOccCapacityRequestDetails; + } + /** + * The OCID of the capacity request. + */ + private String occCapacityRequestId; + + /** + * The OCID of the capacity request. + */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails getBody$() { + return patchOccCapacityRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchInternalOccCapacityRequestRequest, + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to update the details of the capacity request. + */ + private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails = null; + + /** + * Request to update the details of the capacity request. + * @param patchOccCapacityRequestDetails the value to set + * @return this builder instance + */ + public Builder patchOccCapacityRequestDetails( + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails) { + this.patchOccCapacityRequestDetails = patchOccCapacityRequestDetails; + return this; + } + + /** + * The OCID of the capacity request. + */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchInternalOccCapacityRequestRequest o) { + patchOccCapacityRequestDetails(o.getPatchOccCapacityRequestDetails()); + occCapacityRequestId(o.getOccCapacityRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchInternalOccCapacityRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of PatchInternalOccCapacityRequestRequest + */ + public PatchInternalOccCapacityRequestRequest build() { + PatchInternalOccCapacityRequestRequest 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.capacitymanagement.model.PatchOccCapacityRequestDetails body) { + patchOccCapacityRequestDetails(body); + return this; + } + + /** + * Build the instance of PatchInternalOccCapacityRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of PatchInternalOccCapacityRequestRequest + */ + public PatchInternalOccCapacityRequestRequest buildWithoutInvocationCallback() { + PatchInternalOccCapacityRequestRequest request = + new PatchInternalOccCapacityRequestRequest(); + request.patchOccCapacityRequestDetails = patchOccCapacityRequestDetails; + request.occCapacityRequestId = occCapacityRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new PatchInternalOccCapacityRequestRequest(patchOccCapacityRequestDetails, occCapacityRequestId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .patchOccCapacityRequestDetails(patchOccCapacityRequestDetails) + .occCapacityRequestId(occCapacityRequestId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",patchOccCapacityRequestDetails=") + .append(String.valueOf(this.patchOccCapacityRequestDetails)); + sb.append(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInternalOccCapacityRequestRequest)) { + return false; + } + + PatchInternalOccCapacityRequestRequest other = (PatchInternalOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.patchOccCapacityRequestDetails, other.patchOccCapacityRequestDetails) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.patchOccCapacityRequestDetails == null + ? 43 + : this.patchOccCapacityRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java index 7cc4f84e3f..00524df9f1 100644 --- a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java @@ -14,13 +14,13 @@ public class PatchOccCapacityRequestRequest com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails> { /** - * Request to update the properties of the capacity request. + * Request to update the details of the capacity request. */ private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails patchOccCapacityRequestDetails; /** - * Request to update the properties of the capacity request. + * Request to update the details of the capacity request. */ public com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails getPatchOccCapacityRequestDetails() { @@ -93,13 +93,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Request to update the properties of the capacity request. + * Request to update the details of the capacity request. */ private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails patchOccCapacityRequestDetails = null; /** - * Request to update the properties of the capacity request. + * Request to update the details of the capacity request. * @param patchOccCapacityRequestDetails the value to set * @return this builder instance */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListInternalNamespaceOccOverviewsResponse.java similarity index 73% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java rename to bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListInternalNamespaceOccOverviewsResponse.java index 5918eba01b..b94fcb49a6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListInternalNamespaceOccOverviewsResponse.java @@ -2,12 +2,13 @@ * 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.capacitymanagement.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.capacitymanagement.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentsResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListInternalNamespaceOccOverviewsResponse + extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -45,16 +46,17 @@ public String getOpcNextPage() { } /** - * The returned AgentCollection instance. + * The returned OccOverviewCollection instance. */ - private com.oracle.bmc.databasemigration.model.AgentCollection agentCollection; + private com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection; /** - * The returned AgentCollection instance. + * The returned OccOverviewCollection instance. * @return the value */ - public com.oracle.bmc.databasemigration.model.AgentCollection getAgentCollection() { - return agentCollection; + public com.oracle.bmc.capacitymanagement.model.OccOverviewCollection + getOccOverviewCollection() { + return occOverviewCollection; } @java.beans.ConstructorProperties({ @@ -62,18 +64,18 @@ public com.oracle.bmc.databasemigration.model.AgentCollection getAgentCollection "headers", "opcRequestId", "opcNextPage", - "agentCollection" + "occOverviewCollection" }) - private ListAgentsResponse( + private ListInternalNamespaceOccOverviewsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.databasemigration.model.AgentCollection agentCollection) { + com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.agentCollection = agentCollection; + this.occOverviewCollection = occOverviewCollection; } public static class Builder { @@ -132,18 +134,19 @@ public Builder opcNextPage(String opcNextPage) { } /** - * The returned AgentCollection instance. + * The returned OccOverviewCollection instance. */ - private com.oracle.bmc.databasemigration.model.AgentCollection agentCollection; + private com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection; /** - * The returned AgentCollection instance. - * @param agentCollection the value to set + * The returned OccOverviewCollection instance. + * @param occOverviewCollection the value to set * @return this builder */ - public Builder agentCollection( - com.oracle.bmc.databasemigration.model.AgentCollection agentCollection) { - this.agentCollection = agentCollection; + public Builder occOverviewCollection( + com.oracle.bmc.capacitymanagement.model.OccOverviewCollection + occOverviewCollection) { + this.occOverviewCollection = occOverviewCollection; return this; } @@ -151,12 +154,12 @@ public Builder agentCollection( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListAgentsResponse o) { + public Builder copy(ListInternalNamespaceOccOverviewsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - agentCollection(o.getAgentCollection()); + occOverviewCollection(o.getOccOverviewCollection()); return this; } @@ -165,9 +168,9 @@ public Builder copy(ListAgentsResponse o) { * Build the response object. * @return the response object */ - public ListAgentsResponse build() { - return new ListAgentsResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, agentCollection); + public ListInternalNamespaceOccOverviewsResponse build() { + return new ListInternalNamespaceOccOverviewsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, occOverviewCollection); } } @@ -186,7 +189,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",agentCollection=").append(String.valueOf(agentCollection)); + sb.append(",occOverviewCollection=").append(String.valueOf(occOverviewCollection)); sb.append(")"); return sb.toString(); } @@ -196,15 +199,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListAgentsResponse)) { + if (!(o instanceof ListInternalNamespaceOccOverviewsResponse)) { return false; } - ListAgentsResponse other = (ListAgentsResponse) o; + ListInternalNamespaceOccOverviewsResponse other = + (ListInternalNamespaceOccOverviewsResponse) 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); + && java.util.Objects.equals( + this.occOverviewCollection, other.occOverviewCollection); } @Override @@ -215,7 +220,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.agentCollection == null ? 43 : this.agentCollection.hashCode()); + + (this.occOverviewCollection == null + ? 43 + : this.occOverviewCollection.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccOverviewsResponse.java similarity index 75% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java rename to bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccOverviewsResponse.java index b510aabb66..116a46fda1 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccOverviewsResponse.java @@ -2,12 +2,12 @@ * 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.capacitymanagement.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.capacitymanagement.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentImagesResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccOverviewsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -45,16 +45,17 @@ public String getOpcNextPage() { } /** - * The returned AgentImageCollection instance. + * The returned OccOverviewCollection instance. */ - private com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection; + private com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection; /** - * The returned AgentImageCollection instance. + * The returned OccOverviewCollection instance. * @return the value */ - public com.oracle.bmc.databasemigration.model.AgentImageCollection getAgentImageCollection() { - return agentImageCollection; + public com.oracle.bmc.capacitymanagement.model.OccOverviewCollection + getOccOverviewCollection() { + return occOverviewCollection; } @java.beans.ConstructorProperties({ @@ -62,18 +63,18 @@ public com.oracle.bmc.databasemigration.model.AgentImageCollection getAgentImage "headers", "opcRequestId", "opcNextPage", - "agentImageCollection" + "occOverviewCollection" }) - private ListAgentImagesResponse( + private ListOccOverviewsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection) { + com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.agentImageCollection = agentImageCollection; + this.occOverviewCollection = occOverviewCollection; } public static class Builder { @@ -132,18 +133,19 @@ public Builder opcNextPage(String opcNextPage) { } /** - * The returned AgentImageCollection instance. + * The returned OccOverviewCollection instance. */ - private com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection; + private com.oracle.bmc.capacitymanagement.model.OccOverviewCollection occOverviewCollection; /** - * The returned AgentImageCollection instance. - * @param agentImageCollection the value to set + * The returned OccOverviewCollection instance. + * @param occOverviewCollection the value to set * @return this builder */ - public Builder agentImageCollection( - com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection) { - this.agentImageCollection = agentImageCollection; + public Builder occOverviewCollection( + com.oracle.bmc.capacitymanagement.model.OccOverviewCollection + occOverviewCollection) { + this.occOverviewCollection = occOverviewCollection; return this; } @@ -151,12 +153,12 @@ public Builder agentImageCollection( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListAgentImagesResponse o) { + public Builder copy(ListOccOverviewsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - agentImageCollection(o.getAgentImageCollection()); + occOverviewCollection(o.getOccOverviewCollection()); return this; } @@ -165,9 +167,9 @@ public Builder copy(ListAgentImagesResponse o) { * Build the response object. * @return the response object */ - public ListAgentImagesResponse build() { - return new ListAgentImagesResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, agentImageCollection); + public ListOccOverviewsResponse build() { + return new ListOccOverviewsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, occOverviewCollection); } } @@ -186,7 +188,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",agentImageCollection=").append(String.valueOf(agentImageCollection)); + sb.append(",occOverviewCollection=").append(String.valueOf(occOverviewCollection)); sb.append(")"); return sb.toString(); } @@ -196,15 +198,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListAgentImagesResponse)) { + if (!(o instanceof ListOccOverviewsResponse)) { return false; } - ListAgentImagesResponse other = (ListAgentImagesResponse) o; + ListOccOverviewsResponse other = (ListOccOverviewsResponse) 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); + && java.util.Objects.equals( + this.occOverviewCollection, other.occOverviewCollection); } @Override @@ -215,9 +218,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.agentImageCollection == null + + (this.occOverviewCollection == null ? 43 - : this.agentImageCollection.hashCode()); + : this.occOverviewCollection.hashCode()); return result; } } diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchInternalOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchInternalOccCapacityRequestResponse.java new file mode 100644 index 0000000000..98b1547228 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchInternalOccCapacityRequestResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PatchInternalOccCapacityRequestResponse 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 OccCapacityRequest instance. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned OccCapacityRequest instance. + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "occCapacityRequest" + }) + private PatchInternalOccCapacityRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.occCapacityRequest = occCapacityRequest; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned OccCapacityRequest instance. + */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned OccCapacityRequest instance. + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchInternalOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PatchInternalOccCapacityRequestResponse build() { + return new PatchInternalOccCapacityRequestResponse( + __httpStatusCode__, headers, opcRequestId, etag, occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInternalOccCapacityRequestResponse)) { + return false; + } + + PatchInternalOccCapacityRequestResponse other = (PatchInternalOccCapacityRequestResponse) 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.occCapacityRequest, other.occCapacityRequest); + } + + @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.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 0526f06b66..8a00949865 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-certificates @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index f648e5ca20..15c4c035b7 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 5036f6cdfc..c08c782ddf 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-cims @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 67c3b62578..22b8dac173 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 67c60c22ef..2e50dca236 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-cloudbridge @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 901453d19c..ff0b8bdf33 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-cloudguard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfile.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfile.java index 7604df2380..7b8c8f4bfa 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfile.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfile.java @@ -34,6 +34,8 @@ public final class ResourceProfile extends com.oracle.bmc.http.internal.Explicit "timePeakScore", "timeFirstDetected", "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred", "tactics", "locks" }) @@ -52,6 +54,8 @@ public ResourceProfile( java.util.Date timePeakScore, java.util.Date timeFirstDetected, java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred, java.util.List tactics, java.util.List locks) { super(); @@ -69,6 +73,8 @@ public ResourceProfile( this.timePeakScore = timePeakScore; this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; this.tactics = tactics; this.locks = locks; } @@ -268,13 +274,13 @@ public Builder timePeakScore(java.util.Date timePeakScore) { return this; } /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private java.util.Date timeFirstDetected; /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @param timeFirstDetected the value to set * @return this builder **/ @@ -284,13 +290,13 @@ public Builder timeFirstDetected(java.util.Date timeFirstDetected) { return this; } /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @param timeLastDetected the value to set * @return this builder **/ @@ -299,6 +305,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } /** * List of tactic summaries associated with the resource profile **/ @@ -352,6 +390,8 @@ public ResourceProfile build() { this.timePeakScore, this.timeFirstDetected, this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred, this.tactics, this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -404,6 +444,12 @@ public Builder copy(ResourceProfile model) { if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } if (model.wasPropertyExplicitlySet("tactics")) { this.tactics(model.getTactics()); } @@ -594,13 +640,13 @@ public java.util.Date getTimePeakScore() { } /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private final java.util.Date timeFirstDetected; /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeFirstDetected() { @@ -608,19 +654,47 @@ public java.util.Date getTimeFirstDetected() { } /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + /** * List of tactic summaries associated with the resource profile **/ @@ -677,6 +751,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timePeakScore=").append(String.valueOf(this.timePeakScore)); sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(", tactics=").append(String.valueOf(this.tactics)); sb.append(", locks=").append(String.valueOf(this.locks)); sb.append(")"); @@ -707,6 +783,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timePeakScore, other.timePeakScore) && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && java.util.Objects.equals(this.tactics, other.tactics) && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); @@ -742,6 +820,12 @@ public int hashCode() { result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + (this.tactics == null ? 43 : this.tactics.hashCode()); result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileEndpointSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileEndpointSummary.java index 0a4178ff59..00d52df14c 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileEndpointSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileEndpointSummary.java @@ -37,7 +37,10 @@ public final class ResourceProfileEndpointSummary "asnNumber", "regions", "services", - "timeLastDetected" + "timeFirstDetected", + "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred" }) public ResourceProfileEndpointSummary( String id, @@ -54,7 +57,10 @@ public ResourceProfileEndpointSummary( String asnNumber, java.util.List regions, java.util.List services, - java.util.Date timeLastDetected) { + java.util.Date timeFirstDetected, + java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred) { super(); this.id = id; this.resourceProfileId = resourceProfileId; @@ -70,7 +76,10 @@ public ResourceProfileEndpointSummary( this.asnNumber = asnNumber; this.regions = regions; this.services = services; + this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -300,13 +309,29 @@ public Builder services(java.util.List services) { return this; } /** - * Date and time when activities were created + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @param timeFirstDetected the value to set + * @return this builder + **/ + public Builder timeFirstDetected(java.util.Date timeFirstDetected) { + this.timeFirstDetected = timeFirstDetected; + this.__explicitlySet__.add("timeFirstDetected"); + return this; + } + /** + * Time the activities were last detected. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * Date and time when activities were created + * Time the activities were last detected. * @param timeLastDetected the value to set * @return this builder **/ @@ -315,6 +340,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -336,7 +393,10 @@ public ResourceProfileEndpointSummary build() { this.asnNumber, this.regions, this.services, - this.timeLastDetected); + this.timeFirstDetected, + this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -387,9 +447,18 @@ public Builder copy(ResourceProfileEndpointSummary model) { if (model.wasPropertyExplicitlySet("services")) { this.services(model.getServices()); } + if (model.wasPropertyExplicitlySet("timeFirstDetected")) { + this.timeFirstDetected(model.getTimeFirstDetected()); + } if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } return this; } } @@ -602,19 +671,61 @@ public java.util.List getServices() { } /** - * Date and time when activities were created + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private final java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @return the value + **/ + public java.util.Date getTimeFirstDetected() { + return timeFirstDetected; + } + + /** + * Time the activities were last detected. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * Date and time when activities were created + * Time the activities were last detected. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + @Override public String toString() { return this.toString(true); @@ -644,7 +755,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", asnNumber=").append(String.valueOf(this.asnNumber)); sb.append(", regions=").append(String.valueOf(this.regions)); sb.append(", services=").append(String.valueOf(this.services)); + sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(")"); return sb.toString(); } @@ -674,7 +788,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.asnNumber, other.asnNumber) && java.util.Objects.equals(this.regions, other.regions) && java.util.Objects.equals(this.services, other.services) + && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && super.equals(other); } @@ -708,9 +825,18 @@ public int hashCode() { result = (result * PRIME) + (this.asnNumber == null ? 43 : this.asnNumber.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); result = (result * PRIME) + (this.services == null ? 43 : this.services.hashCode()); + result = + (result * PRIME) + + (this.timeFirstDetected == null ? 43 : this.timeFirstDetected.hashCode()); result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileImpactedResourceSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileImpactedResourceSummary.java index 74c79da63c..981ac8c148 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileImpactedResourceSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileImpactedResourceSummary.java @@ -33,7 +33,11 @@ public final class ResourceProfileImpactedResourceSummary "sightingType", "sightingTypeDisplayName", "region", - "timeIdentified" + "timeIdentified", + "timeFirstDetected", + "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred" }) public ResourceProfileImpactedResourceSummary( String id, @@ -46,7 +50,11 @@ public ResourceProfileImpactedResourceSummary( String sightingType, String sightingTypeDisplayName, String region, - java.util.Date timeIdentified) { + java.util.Date timeIdentified, + java.util.Date timeFirstDetected, + java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred) { super(); this.id = id; this.resourceProfileId = resourceProfileId; @@ -59,6 +67,10 @@ public ResourceProfileImpactedResourceSummary( this.sightingTypeDisplayName = sightingTypeDisplayName; this.region = region; this.timeIdentified = timeIdentified; + this.timeFirstDetected = timeFirstDetected; + this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -239,6 +251,70 @@ public Builder timeIdentified(java.util.Date timeIdentified) { this.__explicitlySet__.add("timeIdentified"); return this; } + /** + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @param timeFirstDetected the value to set + * @return this builder + **/ + public Builder timeFirstDetected(java.util.Date timeFirstDetected) { + this.timeFirstDetected = timeFirstDetected; + this.__explicitlySet__.add("timeFirstDetected"); + return this; + } + /** + * Time the activities were last detected. Same as timeIdentified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") + private java.util.Date timeLastDetected; + + /** + * Time the activities were last detected. Same as timeIdentified. + * @param timeLastDetected the value to set + * @return this builder + **/ + public Builder timeLastDetected(java.util.Date timeLastDetected) { + this.timeLastDetected = timeLastDetected; + this.__explicitlySet__.add("timeLastDetected"); + return this; + } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -256,7 +332,11 @@ public ResourceProfileImpactedResourceSummary build() { this.sightingType, this.sightingTypeDisplayName, this.region, - this.timeIdentified); + this.timeIdentified, + this.timeFirstDetected, + this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -298,6 +378,18 @@ public Builder copy(ResourceProfileImpactedResourceSummary model) { if (model.wasPropertyExplicitlySet("timeIdentified")) { this.timeIdentified(model.getTimeIdentified()); } + if (model.wasPropertyExplicitlySet("timeFirstDetected")) { + this.timeFirstDetected(model.getTimeFirstDetected()); + } + if (model.wasPropertyExplicitlySet("timeLastDetected")) { + this.timeLastDetected(model.getTimeLastDetected()); + } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } return this; } } @@ -467,6 +559,62 @@ public java.util.Date getTimeIdentified() { return timeIdentified; } + /** + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private final java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @return the value + **/ + public java.util.Date getTimeFirstDetected() { + return timeFirstDetected; + } + + /** + * Time the activities were last detected. Same as timeIdentified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") + private final java.util.Date timeLastDetected; + + /** + * Time the activities were last detected. Same as timeIdentified. + * @return the value + **/ + public java.util.Date getTimeLastDetected() { + return timeLastDetected; + } + + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + @Override public String toString() { return this.toString(true); @@ -493,6 +641,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.sightingTypeDisplayName)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", timeIdentified=").append(String.valueOf(this.timeIdentified)); + sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); + sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(")"); return sb.toString(); } @@ -519,6 +671,10 @@ public boolean equals(Object o) { this.sightingTypeDisplayName, other.sightingTypeDisplayName) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.timeIdentified, other.timeIdentified) + && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) + && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && super.equals(other); } @@ -547,6 +703,18 @@ public int hashCode() { result = (result * PRIME) + (this.timeIdentified == null ? 43 : this.timeIdentified.hashCode()); + result = + (result * PRIME) + + (this.timeFirstDetected == null ? 43 : this.timeFirstDetected.hashCode()); + result = + (result * PRIME) + + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileSummary.java index 2f74262a24..cb5fd774a6 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/ResourceProfileSummary.java @@ -32,6 +32,8 @@ public final class ResourceProfileSummary "tactics", "timeFirstDetected", "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred", "problemsCount" }) public ResourceProfileSummary( @@ -44,6 +46,8 @@ public ResourceProfileSummary( java.util.List tactics, java.util.Date timeFirstDetected, java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred, Integer problemsCount) { super(); this.sightingsCount = sightingsCount; @@ -55,6 +59,8 @@ public ResourceProfileSummary( this.tactics = tactics; this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; this.problemsCount = problemsCount; } @@ -173,13 +179,13 @@ public Builder tactics(java.util.List tactics) { return this; } /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private java.util.Date timeFirstDetected; /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @param timeFirstDetected the value to set * @return this builder **/ @@ -189,13 +195,13 @@ public Builder timeFirstDetected(java.util.Date timeFirstDetected) { return this; } /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @param timeLastDetected the value to set * @return this builder **/ @@ -204,6 +210,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } /** * Number of problems associated with this resource profile **/ @@ -236,6 +274,8 @@ public ResourceProfileSummary build() { this.tactics, this.timeFirstDetected, this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred, this.problemsCount); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -272,6 +312,12 @@ public Builder copy(ResourceProfileSummary model) { if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } if (model.wasPropertyExplicitlySet("problemsCount")) { this.problemsCount(model.getProblemsCount()); } @@ -389,13 +435,13 @@ public java.util.List getTactics() { } /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private final java.util.Date timeFirstDetected; /** - * The date and time the resource profile was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeFirstDetected() { @@ -403,19 +449,47 @@ public java.util.Date getTimeFirstDetected() { } /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * The date and time the resource profile was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + /** * Number of problems associated with this resource profile **/ @@ -453,6 +527,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", tactics=").append(String.valueOf(this.tactics)); sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(", problemsCount=").append(String.valueOf(this.problemsCount)); sb.append(")"); return sb.toString(); @@ -477,6 +553,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.tactics, other.tactics) && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && java.util.Objects.equals(this.problemsCount, other.problemsCount) && super.equals(other); } @@ -500,6 +578,12 @@ public int hashCode() { result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + (this.problemsCount == null ? 43 : this.problemsCount.hashCode()); diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityPolicyCollection.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityPolicyCollection.java index a095b3e162..5bfea060db 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityPolicyCollection.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SecurityPolicyCollection.java @@ -22,12 +22,25 @@ public final class SecurityPolicyCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"items", "locks"}) + @java.beans.ConstructorProperties({ + "items", + "locks", + "freeformTags", + "definedTags", + "systemTags" + }) public SecurityPolicyCollection( - java.util.List items, java.util.List locks) { + java.util.List items, + java.util.List locks, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.items = items; this.locks = locks; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -64,12 +77,89 @@ public Builder locks(java.util.List locks) { this.__explicitlySet__.add("locks"); 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"}} + *

+ * Avoid entering confidential information. + * + **/ + @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"}} + *

+ * Avoid entering confidential information. + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * System tags can be viewed by users, but can only be created by the system. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * System tags can be viewed by users, but can only be created by the system. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public SecurityPolicyCollection build() { - SecurityPolicyCollection model = new SecurityPolicyCollection(this.items, this.locks); + SecurityPolicyCollection model = + new SecurityPolicyCollection( + this.items, + this.locks, + this.freeformTags, + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,6 +174,15 @@ public Builder copy(SecurityPolicyCollection model) { if (model.wasPropertyExplicitlySet("locks")) { this.locks(model.getLocks()); } + 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; } } @@ -127,6 +226,70 @@ public java.util.List getLocks() { return locks; } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + *

+ * Avoid entering confidential information. + * + **/ + @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"}} + *

+ * Avoid entering confidential information. + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * System tags can be viewed by users, but can only be created by the system. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * System tags can be viewed by users, but can only be created by the system. + *

+ * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -143,6 +306,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(", locks=").append(String.valueOf(this.locks)); + 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(); } @@ -159,6 +325,9 @@ public boolean equals(Object o) { SecurityPolicyCollection other = (SecurityPolicyCollection) o; return java.util.Objects.equals(this.items, other.items) && java.util.Objects.equals(this.locks, other.locks) + && 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); } @@ -168,6 +337,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); result = (result * PRIME) + (this.locks == null ? 43 : this.locks.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-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/Sighting.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/Sighting.java index 7d7e032a86..6068ab4810 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/Sighting.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/Sighting.java @@ -37,6 +37,8 @@ public final class Sighting extends com.oracle.bmc.http.internal.ExplicitlySetBm "confidence", "timeFirstDetected", "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred", "regions", "additionalDetails", "locks" @@ -59,6 +61,8 @@ public Sighting( Confidence confidence, java.util.Date timeFirstDetected, java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred, java.util.List regions, java.util.Map additionalDetails, java.util.List locks) { @@ -80,6 +84,8 @@ public Sighting( this.confidence = confidence; this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; this.regions = regions; this.additionalDetails = additionalDetails; this.locks = locks; @@ -328,13 +334,13 @@ public Builder confidence(Confidence confidence) { return this; } /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private java.util.Date timeFirstDetected; /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @param timeFirstDetected the value to set * @return this builder **/ @@ -344,13 +350,13 @@ public Builder timeFirstDetected(java.util.Date timeFirstDetected) { return this; } /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @param timeLastDetected the value to set * @return this builder **/ @@ -359,6 +365,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } /** * List of regions involved in the sighting **/ @@ -431,6 +469,8 @@ public Sighting build() { this.confidence, this.timeFirstDetected, this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred, this.regions, this.additionalDetails, this.locks); @@ -493,6 +533,12 @@ public Builder copy(Sighting model) { if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } @@ -728,13 +774,13 @@ public Confidence getConfidence() { } /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private final java.util.Date timeFirstDetected; /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeFirstDetected() { @@ -742,19 +788,47 @@ public java.util.Date getTimeFirstDetected() { } /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + /** * List of regions involved in the sighting **/ @@ -829,6 +903,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", confidence=").append(String.valueOf(this.confidence)); sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(", regions=").append(String.valueOf(this.regions)); sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); sb.append(", locks=").append(String.valueOf(this.locks)); @@ -864,6 +940,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.confidence, other.confidence) && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && java.util.Objects.equals(this.regions, other.regions) && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) && java.util.Objects.equals(this.locks, other.locks) @@ -919,6 +997,12 @@ public int hashCode() { result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); result = (result * PRIME) diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingEndpointSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingEndpointSummary.java index 2192939688..1f8f697d6e 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingEndpointSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingEndpointSummary.java @@ -35,7 +35,10 @@ public final class SightingEndpointSummary "asnNumber", "regions", "services", - "timeLastDetected" + "timeFirstDetected", + "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred" }) public SightingEndpointSummary( String id, @@ -50,7 +53,10 @@ public SightingEndpointSummary( String asnNumber, java.util.List regions, java.util.List services, - java.util.Date timeLastDetected) { + java.util.Date timeFirstDetected, + java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred) { super(); this.id = id; this.sightingId = sightingId; @@ -64,7 +70,10 @@ public SightingEndpointSummary( this.asnNumber = asnNumber; this.regions = regions; this.services = services; + this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -262,13 +271,29 @@ public Builder services(java.util.List services) { return this; } /** - * Date and time when activities were created + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @param timeFirstDetected the value to set + * @return this builder + **/ + public Builder timeFirstDetected(java.util.Date timeFirstDetected) { + this.timeFirstDetected = timeFirstDetected; + this.__explicitlySet__.add("timeFirstDetected"); + return this; + } + /** + * Time the activities were last detected. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * Date and time when activities were created + * Time the activities were last detected. * @param timeLastDetected the value to set * @return this builder **/ @@ -277,6 +302,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -296,7 +353,10 @@ public SightingEndpointSummary build() { this.asnNumber, this.regions, this.services, - this.timeLastDetected); + this.timeFirstDetected, + this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -341,9 +401,18 @@ public Builder copy(SightingEndpointSummary model) { if (model.wasPropertyExplicitlySet("services")) { this.services(model.getServices()); } + if (model.wasPropertyExplicitlySet("timeFirstDetected")) { + this.timeFirstDetected(model.getTimeFirstDetected()); + } if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } return this; } } @@ -528,19 +597,61 @@ public java.util.List getServices() { } /** - * Date and time when activities were created + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private final java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @return the value + **/ + public java.util.Date getTimeFirstDetected() { + return timeFirstDetected; + } + + /** + * Time the activities were last detected. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * Date and time when activities were created + * Time the activities were last detected. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + @Override public String toString() { return this.toString(true); @@ -567,7 +678,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", asnNumber=").append(String.valueOf(this.asnNumber)); sb.append(", regions=").append(String.valueOf(this.regions)); sb.append(", services=").append(String.valueOf(this.services)); + sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(")"); return sb.toString(); } @@ -594,7 +708,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.asnNumber, other.asnNumber) && java.util.Objects.equals(this.regions, other.regions) && java.util.Objects.equals(this.services, other.services) + && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && super.equals(other); } @@ -620,9 +737,18 @@ public int hashCode() { result = (result * PRIME) + (this.asnNumber == null ? 43 : this.asnNumber.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); result = (result * PRIME) + (this.services == null ? 43 : this.services.hashCode()); + result = + (result * PRIME) + + (this.timeFirstDetected == null ? 43 : this.timeFirstDetected.hashCode()); result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingImpactedResourceSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingImpactedResourceSummary.java index e8211f872a..61e0b4789b 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingImpactedResourceSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingImpactedResourceSummary.java @@ -31,7 +31,11 @@ public final class SightingImpactedResourceSummary "resourceName", "resourceType", "region", - "timeIdentified" + "timeIdentified", + "timeFirstDetected", + "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred" }) public SightingImpactedResourceSummary( String id, @@ -42,7 +46,11 @@ public SightingImpactedResourceSummary( String resourceName, String resourceType, String region, - java.util.Date timeIdentified) { + java.util.Date timeIdentified, + java.util.Date timeFirstDetected, + java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred) { super(); this.id = id; this.resourceId = resourceId; @@ -53,6 +61,10 @@ public SightingImpactedResourceSummary( this.resourceType = resourceType; this.region = region; this.timeIdentified = timeIdentified; + this.timeFirstDetected = timeFirstDetected; + this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -201,6 +213,70 @@ public Builder timeIdentified(java.util.Date timeIdentified) { this.__explicitlySet__.add("timeIdentified"); return this; } + /** + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @param timeFirstDetected the value to set + * @return this builder + **/ + public Builder timeFirstDetected(java.util.Date timeFirstDetected) { + this.timeFirstDetected = timeFirstDetected; + this.__explicitlySet__.add("timeFirstDetected"); + return this; + } + /** + * Time the activities were last detected. Same as timeIdentified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") + private java.util.Date timeLastDetected; + + /** + * Time the activities were last detected. Same as timeIdentified. + * @param timeLastDetected the value to set + * @return this builder + **/ + public Builder timeLastDetected(java.util.Date timeLastDetected) { + this.timeLastDetected = timeLastDetected; + this.__explicitlySet__.add("timeLastDetected"); + return this; + } + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -216,7 +292,11 @@ public SightingImpactedResourceSummary build() { this.resourceName, this.resourceType, this.region, - this.timeIdentified); + this.timeIdentified, + this.timeFirstDetected, + this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -252,6 +332,18 @@ public Builder copy(SightingImpactedResourceSummary model) { if (model.wasPropertyExplicitlySet("timeIdentified")) { this.timeIdentified(model.getTimeIdentified()); } + if (model.wasPropertyExplicitlySet("timeFirstDetected")) { + this.timeFirstDetected(model.getTimeFirstDetected()); + } + if (model.wasPropertyExplicitlySet("timeLastDetected")) { + this.timeLastDetected(model.getTimeLastDetected()); + } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } return this; } } @@ -393,6 +485,62 @@ public java.util.Date getTimeIdentified() { return timeIdentified; } + /** + * Time the activities were first detected. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") + private final java.util.Date timeFirstDetected; + + /** + * Time the activities were first detected. + * @return the value + **/ + public java.util.Date getTimeFirstDetected() { + return timeFirstDetected; + } + + /** + * Time the activities were last detected. Same as timeIdentified. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") + private final java.util.Date timeLastDetected; + + /** + * Time the activities were last detected. Same as timeIdentified. + * @return the value + **/ + public java.util.Date getTimeLastDetected() { + return timeLastDetected; + } + + /** + * Time the activities were first performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + @Override public String toString() { return this.toString(true); @@ -416,6 +564,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", timeIdentified=").append(String.valueOf(this.timeIdentified)); + sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); + sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(")"); return sb.toString(); } @@ -439,6 +591,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.timeIdentified, other.timeIdentified) + && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) + && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && super.equals(other); } @@ -459,6 +615,18 @@ public int hashCode() { result = (result * PRIME) + (this.timeIdentified == null ? 43 : this.timeIdentified.hashCode()); + result = + (result * PRIME) + + (this.timeFirstDetected == null ? 43 : this.timeFirstDetected.hashCode()); + result = + (result * PRIME) + + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingSummary.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingSummary.java index ac6897ecc0..3c5e07d41b 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingSummary.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/model/SightingSummary.java @@ -37,6 +37,8 @@ public final class SightingSummary extends com.oracle.bmc.http.internal.Explicit "confidence", "timeFirstDetected", "timeLastDetected", + "timeFirstOccurred", + "timeLastOccurred", "regions" }) public SightingSummary( @@ -57,6 +59,8 @@ public SightingSummary( Confidence confidence, java.util.Date timeFirstDetected, java.util.Date timeLastDetected, + java.util.Date timeFirstOccurred, + java.util.Date timeLastOccurred, java.util.List regions) { super(); this.id = id; @@ -76,6 +80,8 @@ public SightingSummary( this.confidence = confidence; this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; + this.timeFirstOccurred = timeFirstOccurred; + this.timeLastOccurred = timeLastOccurred; this.regions = regions; } @@ -322,13 +328,13 @@ public Builder confidence(Confidence confidence) { return this; } /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private java.util.Date timeFirstDetected; /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @param timeFirstDetected the value to set * @return this builder **/ @@ -338,13 +344,13 @@ public Builder timeFirstDetected(java.util.Date timeFirstDetected) { return this; } /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @param timeLastDetected the value to set * @return this builder **/ @@ -353,6 +359,38 @@ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.__explicitlySet__.add("timeLastDetected"); return this; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @param timeFirstOccurred the value to set + * @return this builder + **/ + public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { + this.timeFirstOccurred = timeFirstOccurred; + this.__explicitlySet__.add("timeFirstOccurred"); + return this; + } + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @param timeLastOccurred the value to set + * @return this builder + **/ + public Builder timeLastOccurred(java.util.Date timeLastOccurred) { + this.timeLastOccurred = timeLastOccurred; + this.__explicitlySet__.add("timeLastOccurred"); + return this; + } /** * List of regions involved in the sighting **/ @@ -393,6 +431,8 @@ public SightingSummary build() { this.confidence, this.timeFirstDetected, this.timeLastDetected, + this.timeFirstOccurred, + this.timeLastOccurred, this.regions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -453,6 +493,12 @@ public Builder copy(SightingSummary model) { if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } + if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { + this.timeFirstOccurred(model.getTimeFirstOccurred()); + } + if (model.wasPropertyExplicitlySet("timeLastOccurred")) { + this.timeLastOccurred(model.getTimeLastOccurred()); + } if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } @@ -682,13 +728,13 @@ public Confidence getConfidence() { } /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private final java.util.Date timeFirstDetected; /** - * The date and time the sighting was first detected. Format defined by RFC3339. + * Time the activities were first detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeFirstDetected() { @@ -696,19 +742,47 @@ public java.util.Date getTimeFirstDetected() { } /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** - * The date and time the sighting was last detected. Format defined by RFC3339. + * Time the activities were last detected. Format defined by RFC3339. * @return the value **/ public java.util.Date getTimeLastDetected() { return timeLastDetected; } + /** + * Time the activities were first performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") + private final java.util.Date timeFirstOccurred; + + /** + * Time the activities were first performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeFirstOccurred() { + return timeFirstOccurred; + } + + /** + * Time the activities were last performed. Format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") + private final java.util.Date timeLastOccurred; + + /** + * Time the activities were last performed. Format defined by RFC3339. + * @return the value + **/ + public java.util.Date getTimeLastOccurred() { + return timeLastOccurred; + } + /** * List of regions involved in the sighting **/ @@ -755,6 +829,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", confidence=").append(String.valueOf(this.confidence)); sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); + sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); + sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(", regions=").append(String.valueOf(this.regions)); sb.append(")"); return sb.toString(); @@ -788,6 +864,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.confidence, other.confidence) && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) + && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) + && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && java.util.Objects.equals(this.regions, other.regions) && super.equals(other); } @@ -843,6 +921,12 @@ public int hashCode() { result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); + result = + (result * PRIME) + + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); + result = + (result * PRIME) + + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 3d0136c9a6..e0a30b63d0 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index ca3164dfa0..f6945cb9a0 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 03690aa5da..0b281fdb2a 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -69,10 +69,6 @@ org.bouncycastle bcprov-jdk15on - - com.nimbusds - nimbus-jose-jwt - io.github.resilience4j resilience4j-circuitbreaker @@ -80,7 +76,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.72.0 + 2.73.0 diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/JwtClaimsSet.java b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/JwtClaimsSet.java index 0d9aa316d4..92de8694f8 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/JwtClaimsSet.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/JwtClaimsSet.java @@ -4,18 +4,25 @@ */ package com.oracle.bmc.auth.internal; +import java.io.IOException; import java.text.ParseException; +import java.util.Collections; import java.util.Date; +import java.util.Map; +import java.util.concurrent.TimeUnit; -import com.nimbusds.jwt.JWTClaimsSet; -import com.nimbusds.jwt.SignedJWT; +import com.fasterxml.jackson.databind.ObjectMapper; import com.oracle.bmc.util.internal.Validate; /** * JSON Web Token Claim Set. */ public class JwtClaimsSet { - private final JWTClaimsSet jwt; + private static final ObjectMapper OBJECT_MAPPER = + com.oracle.bmc.http.Serialization.getObjectMapper(); + private final Map header; + private final Map payload; + private final String signature; /** * Create a JWT claim set from a token string. @@ -24,55 +31,96 @@ public class JwtClaimsSet { */ public JwtClaimsSet(String token) { Validate.notBlank(token, "token must not be null or empty"); - this.jwt = parse(token); - } - - static JWTClaimsSet parse(String token) { + String[] parts = token.split("\\."); + if (parts.length != 3) { + throw new IllegalArgumentException( + "Malformed JWT, only " + parts.length + " parts instead of 3"); + } try { - SignedJWT signedJWT = SignedJWT.parse(token); - if (signedJWT.getSignature().toString().isEmpty()) { + Map h = OBJECT_MAPPER.readValue(AuthUtils.base64Decode(parts[0]), Map.class); + Map p = OBJECT_MAPPER.readValue(AuthUtils.base64Decode(parts[1]), Map.class); + this.signature = parts[2]; + if (this.signature.isEmpty()) { throw new IllegalArgumentException("The token doesn't have a signature"); } - // check if payload is a valid JSON object and throws ParseException when it's not - return signedJWT.getJWTClaimsSet(); - } catch (ParseException e) { - throw new IllegalArgumentException( - "The token does not conform to signed JWT format. " + e.getMessage()); + convertToDate(p, "exp"); + convertToDate(p, "nbf"); + convertToDate(p, "iat"); + this.header = Collections.unmodifiableMap(h); + this.payload = Collections.unmodifiableMap(p); + } catch (IOException | ClassCastException e) { + throw new IllegalArgumentException("Malformed JWT", e); + } + } + + private static void convertToDate(Map m, String key) { + Object o = m.get(key); + if (o != null) { + m.put(key, new Date(TimeUnit.SECONDS.toMillis(Long.valueOf(o.toString())))); } } + public Map getHeader() { + return header; + } + + public Map getPayload() { + return payload; + } + + public String getSignature() { + return signature; + } + /** * Return the JWT expiration time + * * @return expiration time */ public Date getExpirationTime() { - return jwt.getExpirationTime(); + return (Date) getClaim("exp"); } /** - * Return the JWT issued time - * @return issued time + * Return the string claim for the key. + * + * @param name key for the claim + * @return string claim + * @throws ParseException if not a string */ - public Date getIssueTime() { - return jwt.getIssueTime(); + public String getStringClaim(String name) throws ParseException { + Object claim = payload.get(name); + if (claim == null) { + return null; + } + if (claim instanceof String) { + return (String) claim; + } else { + throw new ParseException( + "Malformed JWT, claim '" + + name + + "' is not a string, was '" + + claim.getClass().getName() + + "'", + 0); + } } /** - * Return the string claim for the key. - * @param jwk key for the claim - * @return string claim - * @throws ParseException if not a string + * Return the JWT issued time + * @return issued time */ - public String getStringClaim(String jwk) throws ParseException { - return jwt.getStringClaim(jwk); + public Date getIssueTime() { + return (Date) getClaim("iat"); } /** * Return the claim for the key. - * @param jwk key for the claim + * + * @param name key for the claim * @return string claim */ - public Object getClaim(String jwk) { - return jwt.getClaim(jwk); + public Object getClaim(String name) { + return payload.get(name); } } diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/FileBasedResourcePrincipalFederationClientTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/FileBasedResourcePrincipalFederationClientTest.java index b28d009ec9..ffdfce7b7b 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/FileBasedResourcePrincipalFederationClientTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/FileBasedResourcePrincipalFederationClientTest.java @@ -9,18 +9,8 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.security.KeyPair; -import java.security.SecureRandom; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; -import java.util.Date; - -import com.nimbusds.jose.JOSEException; -import com.nimbusds.jose.JWSAlgorithm; -import com.nimbusds.jose.JWSHeader; -import com.nimbusds.jose.JWSSigner; -import com.nimbusds.jose.crypto.MACSigner; -import com.nimbusds.jwt.JWTClaimsSet; -import com.nimbusds.jwt.SignedJWT; import com.oracle.bmc.auth.SessionKeySupplier; import org.junit.Test; @@ -28,7 +18,8 @@ import static org.junit.Assert.assertEquals; public class FileBasedResourcePrincipalFederationClientTest { - private static final String fakeToken = generateToken(); + private static final String fakeToken = + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"; @Test public void testGetSecurityTokenFromFile() throws IOException { @@ -64,34 +55,4 @@ public void refreshKeys() {} String securityToken = underTest.refreshAndGetSecurityToken(); assertEquals(fakeToken, securityToken); } - - private static String generateToken() { - try { - // Generate random 256-bit (32-byte) shared secret - SecureRandom secureRandom = new SecureRandom(); - byte[] sharedSecret = new byte[32]; - secureRandom.nextBytes(sharedSecret); - - // Create HMAC signer - JWSSigner signer = new MACSigner(sharedSecret); - - // Prepare JWT with claims set - JWTClaimsSet claimsSet = - new JWTClaimsSet.Builder() - .subject("OCI") - .issuer("https://oraclecloud.com/") - .expirationTime(new Date(new Date().getTime() + 60 * 1000)) - .build(); - - SignedJWT signedJWT = new SignedJWT(new JWSHeader(JWSAlgorithm.HS256), claimsSet); - - // Apply HMAC protection - signedJWT.sign(signer); - - return signedJWT.serialize(); - } catch (JOSEException e) { - e.printStackTrace(); - } - return ""; - } } diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/JwtClaimsSetTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/JwtClaimsSetTest.java index 1ac0706e5d..3d8ef0439d 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/JwtClaimsSetTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/JwtClaimsSetTest.java @@ -44,6 +44,28 @@ public void testToken() throws ParseException { assertEquals("x509", jwt.getStringClaim("ttype")); assertNull(jwt.getStringClaim("foo")); + assertEquals("RS256", jwt.getHeader().get("alg")); + assertEquals( + "6C:33:C0:7A:01:17:3D:3A:D9:50:F3:3D:E1:7B:EC:A9:83:11:9C:57", + jwt.getPayload().get("fprint")); + assertEquals("instance", jwt.getPayload().get("ptype")); + assertEquals("oci", jwt.getPayload().get("aud")); + assertEquals( + "V1,ocid1.dynamicgroup.oc1..aaaaaaaa,3gmypvxxk2jx2znxh27r6wa5zhafblnvytbifljtj7d6nhsgd4ga,h5ew7eqj3qbgkiyy3mnthnxgto7hqbykwogo3bb4gufsgmkwuqfq", + jwt.getPayload().get("opc-tag")); + assertEquals("x509", jwt.getPayload().get("ttype")); + assertEquals( + "ocid1.instance.oc1.iad.anuwcljt46clddyc77t7pjsxqquqwhpndm7bruayfwe63fdrdeuo4ceok4pa", + jwt.getPayload().get("opc-instance")); + assertEquals( + "ocid1.tenancy.oc1..aaaaaaaak7qsj6ltfwek5cxl6xptznanr2kt7fxrbho7di3vchaf6m5apxeq", + jwt.getPayload().get("opc-tenant")); + assertEquals(new Date(1629970866L * 1000L), jwt.getPayload().get("exp")); + assertEquals(new Date(1629969666L * 1000L), jwt.getPayload().get("iat")); + // No key? assertEquals("1629969666", jwt.getPayload().get("key")); + assertEquals("authService.oracle.com", jwt.getPayload().get("iss")); + // No nbf? assertEquals(new Date(1629969666L*1000L), jwt.getPayload().get("nbf")); + String jwk = jwt.getStringClaim("jwk"); assertEquals( "{\"kid\":\"6C:33:C0:7A:01:17:3D:3A:D9:50:F3:3D:E1:7B:EC:A9:83:11:9C:57\",\"n\":\"uck6w2NQDC0uytxSA2PVBFm8e1ECZmPIhDozp1UWcnR2TBSYA+CexWhTnK2++04comemU7AOU+wTjLVMFVKGyBYzUugPWEanluQTf7n5v7KznIGg6bBFSyGvS9IBT9eVUIPYthhPOy6g0XVQwDFrBjEtgB375TIhkSmQcdanYg92iUMoaX8dxs5KnRjTlLkTLZMHyfWnZWBsHKYsHd2wOMjP2yd2VGfo4bFMgEx+mNuqVLeAwuPftvnz1NIAjvqFzsnwfXmzj4q3Qi+GHanoBmHmrNWGnyLCLUojudVwrY6mkN5/lPaWi+m58nytg5W8Yaa24/rBlNGpdtHSxyD4Aw\",\"e\":\"AQAB\",\"kty\":\"RSA\",\"alg\":\"RS256\",\"use\":\"sig\"}", diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 5f96e11d88..b7f955a379 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index f495215885..ecfd3b5a37 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index c3563144b8..1317dd5393 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index fa82fadbf6..49c03a7bad 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-containerinstances @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index cb652b734c..5cc8c5d6ea 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.72.0 + 2.73.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 09dc1391b0..2608cc09b9 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-dashboardservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 210d2d0b81..006f4373a8 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.72.0 + 2.73.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 918a9ddf20..26f07cf52d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -2876,6 +2876,20 @@ ListAutonomousDatabaseClonesResponse listAutonomousDatabaseClones( ListAutonomousDatabaseDataguardAssociationsResponse listAutonomousDatabaseDataguardAssociations( ListAutonomousDatabaseDataguardAssociationsRequest request); + /** + * Lists the Autonomous Database peers for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAutonomousDatabasePeers API. + */ + ListAutonomousDatabasePeersResponse listAutonomousDatabasePeers( + ListAutonomousDatabasePeersRequest request); + /** * Lists the OCIDs of the Autonomous Database local and connected remote refreshable clones with the region where they exist for the specified source database. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index 5397b34a04..f90f3c0e50 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -3672,6 +3672,23 @@ java.util.concurrent.Future listAutonomous ListAutonomousDatabaseDataguardAssociationsResponse> handler); + /** + * Lists the Autonomous Database peers for the specified Autonomous Database. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listAutonomousDatabasePeers( + ListAutonomousDatabasePeersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse> + handler); + /** * Lists the OCIDs of the Autonomous Database local and connected remote refreshable clones with the region where they exist for the specified source database. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 03f4e19387..8420e870c3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -10961,6 +10961,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listAutonomousDatabasePeers( + ListAutonomousDatabasePeersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasePeersRequest, + ListAutonomousDatabasePeersResponse> + handler) { + LOG.trace("Called async listAutonomousDatabasePeers"); + final ListAutonomousDatabasePeersRequest interceptedRequest = + ListAutonomousDatabasePeersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAutonomousDatabasePeersConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListAutonomousDatabasePeers", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAutonomousDatabasePeers"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAutonomousDatabasePeersResponse> + transformer = + ListAutonomousDatabasePeersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasePeersRequest, + ListAutonomousDatabasePeersResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listAutonomousDatabaseRefreshableClones( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index c8f4be36eb..32085b2085 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -8678,6 +8678,44 @@ public ListAutonomousDatabaseClonesResponse listAutonomousDatabaseClones( }); } + @Override + public ListAutonomousDatabasePeersResponse listAutonomousDatabasePeers( + ListAutonomousDatabasePeersRequest request) { + LOG.trace("Called listAutonomousDatabasePeers"); + final ListAutonomousDatabasePeersRequest interceptedRequest = + ListAutonomousDatabasePeersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAutonomousDatabasePeersConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListAutonomousDatabasePeers", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAutonomousDatabasePeers"); + java.util.function.Function + transformer = + ListAutonomousDatabasePeersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListAutonomousDatabaseRefreshableClonesResponse listAutonomousDatabaseRefreshableClones( ListAutonomousDatabaseRefreshableClonesRequest request) { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index a285fe7897..6875368655 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -924,6 +924,126 @@ public ListAutonomousDatabaseDataguardAssociationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listAutonomousDatabasePeers 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 + listAutonomousDatabasePeersResponseIterator( + final ListAutonomousDatabasePeersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAutonomousDatabasePeersRequest.Builder, ListAutonomousDatabasePeersRequest, + ListAutonomousDatabasePeersResponse>( + new java.util.function.Supplier() { + @Override + public ListAutonomousDatabasePeersRequest.Builder get() { + return ListAutonomousDatabasePeersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAutonomousDatabasePeersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasePeersRequest.Builder>, + ListAutonomousDatabasePeersRequest>() { + @Override + public ListAutonomousDatabasePeersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasePeersRequest.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< + ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>() { + @Override + public ListAutonomousDatabasePeersResponse apply( + ListAutonomousDatabasePeersRequest request) { + return client.listAutonomousDatabasePeers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.AutonomousDatabasePeerSummary} objects + * contained in responses from the listAutonomousDatabasePeers operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.database.model.AutonomousDatabasePeerSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAutonomousDatabasePeersRecordIterator( + final ListAutonomousDatabasePeersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAutonomousDatabasePeersRequest.Builder, ListAutonomousDatabasePeersRequest, + ListAutonomousDatabasePeersResponse, + com.oracle.bmc.database.model.AutonomousDatabasePeerSummary>( + new java.util.function.Supplier() { + @Override + public ListAutonomousDatabasePeersRequest.Builder get() { + return ListAutonomousDatabasePeersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAutonomousDatabasePeersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasePeersRequest.Builder>, + ListAutonomousDatabasePeersRequest>() { + @Override + public ListAutonomousDatabasePeersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasePeersRequest.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< + ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>() { + @Override + public ListAutonomousDatabasePeersResponse apply( + ListAutonomousDatabasePeersRequest request) { + return client.listAutonomousDatabasePeers(request); + } + }, + new java.util.function.Function< + ListAutonomousDatabasePeersResponse, + java.util.List< + com.oracle.bmc.database.model.AutonomousDatabasePeerSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.AutonomousDatabasePeerSummary> + apply(ListAutonomousDatabasePeersResponse response) { + return response.getAutonomousDatabasePeerCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listAutonomousDatabaseRefreshableClones operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentImagesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasePeersConverter.java similarity index 71% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentImagesConverter.java rename to bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasePeersConverter.java index 410a07879a..75a7322e1d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentImagesConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasePeersConverter.java @@ -2,36 +2,45 @@ * 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.internal.http; +package com.oracle.bmc.database.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentImagesConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAutonomousDatabasePeersConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListAgentImagesConverter.class); + org.slf4j.LoggerFactory.getLogger(ListAutonomousDatabasePeersConverter.class); - public static com.oracle.bmc.databasemigration.requests.ListAgentImagesRequest interceptRequest( - com.oracle.bmc.databasemigration.requests.ListAgentImagesRequest request) { + public static com.oracle.bmc.database.requests.ListAutonomousDatabasePeersRequest + interceptRequest( + com.oracle.bmc.database.requests.ListAutonomousDatabasePeersRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.ListAgentImagesRequest request) { + com.oracle.bmc.database.requests.ListAutonomousDatabasePeersRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("agentImages"); + client.getBaseTarget() + .path("/20160918") + .path("autonomousDatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAutonomousDatabaseId())) + .path("peers"); if (request.getLimit() != null) { target = @@ -49,14 +58,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPage())); } - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); @@ -73,66 +74,67 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse> + com.oracle.bmc.database.responses.ListAutonomousDatabasePeersResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse> + com.oracle.bmc.database.responses.ListAutonomousDatabasePeersResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse> + com.oracle.bmc.database.responses.ListAutonomousDatabasePeersResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses - .ListAgentImagesResponse>() { + com.oracle.bmc.database.responses + .ListAutonomousDatabasePeersResponse>() { @Override - public com.oracle.bmc.databasemigration.responses - .ListAgentImagesResponse + public com.oracle.bmc.database.responses + .ListAutonomousDatabasePeersResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse"); + "Transform function invoked for com.oracle.bmc.database.responses.ListAutonomousDatabasePeersResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .AgentImageCollection>> + com.oracle.bmc.database.model + .AutonomousDatabasePeerCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model - .AgentImageCollection + com.oracle.bmc.database.model + .AutonomousDatabasePeerCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model - .AgentImageCollection + com.oracle.bmc.database.model + .AutonomousDatabasePeerCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .AgentImageCollection> + com.oracle.bmc.database.model + .AutonomousDatabasePeerCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse - .Builder + com.oracle.bmc.database.responses + .ListAutonomousDatabasePeersResponse.Builder builder = - com.oracle.bmc.databasemigration.responses - .ListAgentImagesResponse.builder() + com.oracle.bmc.database.responses + .ListAutonomousDatabasePeersResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.agentImageCollection(response.getItem()); + builder.autonomousDatabasePeerCollection(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -156,7 +158,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.databasemigration.responses.ListAgentImagesResponse + com.oracle.bmc.database.responses + .ListAutonomousDatabasePeersResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index f6f6f6d7e5..6275a1e136 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -64,6 +64,7 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.Expli "serviceConsoleUrl", "connectionStrings", "connectionUrls", + "publicConnectionUrls", "licenseModel", "usedDataStorageSizeInTBs", "freeformTags", @@ -71,6 +72,7 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.Expli "subnetId", "nsgIds", "privateEndpoint", + "publicEndpoint", "privateEndpointLabel", "privateEndpointIp", "dbVersion", @@ -179,6 +181,7 @@ public AutonomousDatabase( String serviceConsoleUrl, AutonomousDatabaseConnectionStrings connectionStrings, AutonomousDatabaseConnectionUrls connectionUrls, + AutonomousDatabaseConnectionUrls publicConnectionUrls, LicenseModel licenseModel, Integer usedDataStorageSizeInTBs, java.util.Map freeformTags, @@ -186,6 +189,7 @@ public AutonomousDatabase( String subnetId, java.util.List nsgIds, String privateEndpoint, + String publicEndpoint, String privateEndpointLabel, String privateEndpointIp, String dbVersion, @@ -293,6 +297,7 @@ public AutonomousDatabase( this.serviceConsoleUrl = serviceConsoleUrl; this.connectionStrings = connectionStrings; this.connectionUrls = connectionUrls; + this.publicConnectionUrls = publicConnectionUrls; this.licenseModel = licenseModel; this.usedDataStorageSizeInTBs = usedDataStorageSizeInTBs; this.freeformTags = freeformTags; @@ -300,6 +305,7 @@ public AutonomousDatabase( this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateEndpoint = privateEndpoint; + this.publicEndpoint = publicEndpoint; this.privateEndpointLabel = privateEndpointLabel; this.privateEndpointIp = privateEndpointIp; this.dbVersion = dbVersion; @@ -1069,6 +1075,22 @@ public Builder connectionUrls(AutonomousDatabaseConnectionUrls connectionUrls) { this.__explicitlySet__.add("connectionUrls"); return this; } + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicConnectionUrls") + private AutonomousDatabaseConnectionUrls publicConnectionUrls; + + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + * @param publicConnectionUrls the value to set + * @return this builder + **/ + public Builder publicConnectionUrls(AutonomousDatabaseConnectionUrls publicConnectionUrls) { + this.publicConnectionUrls = publicConnectionUrls; + this.__explicitlySet__.add("publicConnectionUrls"); + return this; + } /** * The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. * License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. @@ -1232,6 +1254,22 @@ public Builder privateEndpoint(String privateEndpoint) { this.__explicitlySet__.add("privateEndpoint"); return this; } + /** + * The public endpoint for the private endpoint enabled resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicEndpoint") + private String publicEndpoint; + + /** + * The public endpoint for the private endpoint enabled resource. + * @param publicEndpoint the value to set + * @return this builder + **/ + public Builder publicEndpoint(String publicEndpoint) { + this.publicEndpoint = publicEndpoint; + this.__explicitlySet__.add("publicEndpoint"); + return this; + } /** * The resource's private endpoint label. * - Setting the endpoint label to a non-empty string creates a private endpoint database. @@ -2496,6 +2534,7 @@ public AutonomousDatabase build() { this.serviceConsoleUrl, this.connectionStrings, this.connectionUrls, + this.publicConnectionUrls, this.licenseModel, this.usedDataStorageSizeInTBs, this.freeformTags, @@ -2503,6 +2542,7 @@ public AutonomousDatabase build() { this.subnetId, this.nsgIds, this.privateEndpoint, + this.publicEndpoint, this.privateEndpointLabel, this.privateEndpointIp, this.dbVersion, @@ -2702,6 +2742,9 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("connectionUrls")) { this.connectionUrls(model.getConnectionUrls()); } + if (model.wasPropertyExplicitlySet("publicConnectionUrls")) { + this.publicConnectionUrls(model.getPublicConnectionUrls()); + } if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } @@ -2723,6 +2766,9 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("privateEndpoint")) { this.privateEndpoint(model.getPrivateEndpoint()); } + if (model.wasPropertyExplicitlySet("publicEndpoint")) { + this.publicEndpoint(model.getPublicEndpoint()); + } if (model.wasPropertyExplicitlySet("privateEndpointLabel")) { this.privateEndpointLabel(model.getPrivateEndpointLabel()); } @@ -3711,6 +3757,20 @@ public AutonomousDatabaseConnectionUrls getConnectionUrls() { return connectionUrls; } + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicConnectionUrls") + private final AutonomousDatabaseConnectionUrls publicConnectionUrls; + + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + * @return the value + **/ + public AutonomousDatabaseConnectionUrls getPublicConnectionUrls() { + return publicConnectionUrls; + } + /** * The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. * License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. @@ -3913,6 +3973,20 @@ public String getPrivateEndpoint() { return privateEndpoint; } + /** + * The public endpoint for the private endpoint enabled resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicEndpoint") + private final String publicEndpoint; + + /** + * The public endpoint for the private endpoint enabled resource. + * @return the value + **/ + public String getPublicEndpoint() { + return publicEndpoint; + } + /** * The resource's private endpoint label. * - Setting the endpoint label to a non-empty string creates a private endpoint database. @@ -5762,6 +5836,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serviceConsoleUrl=").append(String.valueOf(this.serviceConsoleUrl)); sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); sb.append(", connectionUrls=").append(String.valueOf(this.connectionUrls)); + sb.append(", publicConnectionUrls=").append(String.valueOf(this.publicConnectionUrls)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); sb.append(", usedDataStorageSizeInTBs=") .append(String.valueOf(this.usedDataStorageSizeInTBs)); @@ -5770,6 +5845,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint)); + sb.append(", publicEndpoint=").append(String.valueOf(this.publicEndpoint)); sb.append(", privateEndpointLabel=").append(String.valueOf(this.privateEndpointLabel)); sb.append(", privateEndpointIp=").append(String.valueOf(this.privateEndpointIp)); sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); @@ -5929,6 +6005,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.serviceConsoleUrl, other.serviceConsoleUrl) && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) && java.util.Objects.equals(this.connectionUrls, other.connectionUrls) + && java.util.Objects.equals(this.publicConnectionUrls, other.publicConnectionUrls) && java.util.Objects.equals(this.licenseModel, other.licenseModel) && java.util.Objects.equals( this.usedDataStorageSizeInTBs, other.usedDataStorageSizeInTBs) @@ -5937,6 +6014,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) + && java.util.Objects.equals(this.publicEndpoint, other.publicEndpoint) && java.util.Objects.equals(this.privateEndpointLabel, other.privateEndpointLabel) && java.util.Objects.equals(this.privateEndpointIp, other.privateEndpointIp) && java.util.Objects.equals(this.dbVersion, other.dbVersion) @@ -6162,6 +6240,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionUrls == null ? 43 : this.connectionUrls.hashCode()); + result = + (result * PRIME) + + (this.publicConnectionUrls == null + ? 43 + : this.publicConnectionUrls.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); result = (result * PRIME) @@ -6175,6 +6258,9 @@ public int hashCode() { result = (result * PRIME) + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); + result = + (result * PRIME) + + (this.publicEndpoint == null ? 43 : this.publicEndpoint.hashCode()); result = (result * PRIME) + (this.privateEndpointLabel == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerCollection.java similarity index 55% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java rename to bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerCollection.java index d4d69ae79e..98c824a3c9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerCollection.java @@ -2,10 +2,10 @@ * 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; +package com.oracle.bmc.database.model; /** - * Details about Oracle GoldenGate Microservices. Required for online logical migration. + * The object holds details about the peer Autonomous Databases for an Oracle Autonomous Database. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -15,47 +15,45 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateGoldenGateDetails.Builder.class + builder = AutonomousDatabasePeerCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateGoldenGateDetails +public final class AutonomousDatabasePeerCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"hub", "settings"}) - public CreateGoldenGateDetails(CreateGoldenGateHub hub, CreateGoldenGateSettings settings) { + @java.beans.ConstructorProperties({"items"}) + public AutonomousDatabasePeerCollection(java.util.List items) { super(); - this.hub = hub; - this.settings = settings; + this.items = items; } @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"); + /** + * This array holds details about Autonomous Database Peers for Oracle an Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This array holds details about Autonomous Database Peers for Oracle an Autonomous Database. + * @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 CreateGoldenGateDetails build() { - CreateGoldenGateDetails model = new CreateGoldenGateDetails(this.hub, this.settings); + public AutonomousDatabasePeerCollection build() { + AutonomousDatabasePeerCollection model = + new AutonomousDatabasePeerCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,12 +61,9 @@ public CreateGoldenGateDetails build() { } @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()); + public Builder copy(AutonomousDatabasePeerCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); } return this; } @@ -85,18 +80,18 @@ 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; + /** + * This array holds details about Autonomous Database Peers for Oracle an Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; - public CreateGoldenGateSettings getSettings() { - return settings; + /** + * This array holds details about Autonomous Database Peers for Oracle an Autonomous Database. + * @return the value + **/ + public java.util.List getItems() { + return items; } @Override @@ -111,10 +106,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateGoldenGateDetails("); + sb.append("AutonomousDatabasePeerCollection("); sb.append("super=").append(super.toString()); - sb.append("hub=").append(String.valueOf(this.hub)); - sb.append(", settings=").append(String.valueOf(this.settings)); + sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); return sb.toString(); } @@ -124,22 +118,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateGoldenGateDetails)) { + if (!(o instanceof AutonomousDatabasePeerCollection)) { 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); + AutonomousDatabasePeerCollection other = (AutonomousDatabasePeerCollection) 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.hub == null ? 43 : this.hub.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); + 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/AwsS3Details.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerSummary.java similarity index 59% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java rename to bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerSummary.java index 43e00a191b..0d0d1580f0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabasePeerSummary.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.database.model; /** - * AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. - * Only supported for source Connection resources with RDS_ORACLE type. + * The object holds details about a peer Autonomous Database for Oracle Autonomous Database. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -16,52 +15,47 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AwsS3Details.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabasePeerSummary.Builder.class +) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AwsS3Details extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class AutonomousDatabasePeerSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "region"}) - public AwsS3Details(String name, String region) { + @java.beans.ConstructorProperties({"id", "region"}) + public AutonomousDatabasePeerSummary(String id, String region) { super(); - this.name = name; + this.id = id; this.region = region; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * S3 bucket name. - * + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; /** - * S3 bucket name. - * - * @param name the value to set + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. + * @param id the value to set * @return this builder **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); 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 - * + * The name of the region where this peer Autonomous Database clone exists. **/ @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 - * + * The name of the region where this peer Autonomous Database clone exists. * @param region the value to set * @return this builder **/ @@ -74,8 +68,9 @@ public Builder region(String region) { @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); + public AutonomousDatabasePeerSummary build() { + AutonomousDatabasePeerSummary model = + new AutonomousDatabasePeerSummary(this.id, this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -83,9 +78,9 @@ public AwsS3Details build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AwsS3Details model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); + public Builder copy(AutonomousDatabasePeerSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); } if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); @@ -106,35 +101,27 @@ public Builder toBuilder() { } /** - * S3 bucket name. - * + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; /** - * S3 bucket name. - * + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database. * @return the value **/ - public String getName() { - return name; + public String getId() { + return id; } /** - * 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 - * + * The name of the region where this peer Autonomous Database clone exists. **/ @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 - * + * The name of the region where this peer Autonomous Database clone exists. * @return the value **/ public String getRegion() { @@ -153,9 +140,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AwsS3Details("); + sb.append("AutonomousDatabasePeerSummary("); sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); + sb.append("id=").append(String.valueOf(this.id)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(")"); return sb.toString(); @@ -166,12 +153,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AwsS3Details)) { + if (!(o instanceof AutonomousDatabasePeerSummary)) { return false; } - AwsS3Details other = (AwsS3Details) o; - return java.util.Objects.equals(this.name, other.name) + AutonomousDatabasePeerSummary other = (AutonomousDatabasePeerSummary) o; + return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.region, other.region) && super.equals(other); } @@ -180,7 +167,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.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-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index 96751707be..2447b96572 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -67,6 +67,7 @@ public final class AutonomousDatabaseSummary "serviceConsoleUrl", "connectionStrings", "connectionUrls", + "publicConnectionUrls", "licenseModel", "usedDataStorageSizeInTBs", "freeformTags", @@ -74,6 +75,7 @@ public final class AutonomousDatabaseSummary "subnetId", "nsgIds", "privateEndpoint", + "publicEndpoint", "privateEndpointLabel", "privateEndpointIp", "dbVersion", @@ -182,6 +184,7 @@ public AutonomousDatabaseSummary( String serviceConsoleUrl, AutonomousDatabaseConnectionStrings connectionStrings, AutonomousDatabaseConnectionUrls connectionUrls, + AutonomousDatabaseConnectionUrls publicConnectionUrls, LicenseModel licenseModel, Integer usedDataStorageSizeInTBs, java.util.Map freeformTags, @@ -189,6 +192,7 @@ public AutonomousDatabaseSummary( String subnetId, java.util.List nsgIds, String privateEndpoint, + String publicEndpoint, String privateEndpointLabel, String privateEndpointIp, String dbVersion, @@ -296,6 +300,7 @@ public AutonomousDatabaseSummary( this.serviceConsoleUrl = serviceConsoleUrl; this.connectionStrings = connectionStrings; this.connectionUrls = connectionUrls; + this.publicConnectionUrls = publicConnectionUrls; this.licenseModel = licenseModel; this.usedDataStorageSizeInTBs = usedDataStorageSizeInTBs; this.freeformTags = freeformTags; @@ -303,6 +308,7 @@ public AutonomousDatabaseSummary( this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateEndpoint = privateEndpoint; + this.publicEndpoint = publicEndpoint; this.privateEndpointLabel = privateEndpointLabel; this.privateEndpointIp = privateEndpointIp; this.dbVersion = dbVersion; @@ -1072,6 +1078,22 @@ public Builder connectionUrls(AutonomousDatabaseConnectionUrls connectionUrls) { this.__explicitlySet__.add("connectionUrls"); return this; } + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicConnectionUrls") + private AutonomousDatabaseConnectionUrls publicConnectionUrls; + + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + * @param publicConnectionUrls the value to set + * @return this builder + **/ + public Builder publicConnectionUrls(AutonomousDatabaseConnectionUrls publicConnectionUrls) { + this.publicConnectionUrls = publicConnectionUrls; + this.__explicitlySet__.add("publicConnectionUrls"); + return this; + } /** * The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. * License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. @@ -1235,6 +1257,22 @@ public Builder privateEndpoint(String privateEndpoint) { this.__explicitlySet__.add("privateEndpoint"); return this; } + /** + * The public endpoint for the private endpoint enabled resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicEndpoint") + private String publicEndpoint; + + /** + * The public endpoint for the private endpoint enabled resource. + * @param publicEndpoint the value to set + * @return this builder + **/ + public Builder publicEndpoint(String publicEndpoint) { + this.publicEndpoint = publicEndpoint; + this.__explicitlySet__.add("publicEndpoint"); + return this; + } /** * The resource's private endpoint label. * - Setting the endpoint label to a non-empty string creates a private endpoint database. @@ -2499,6 +2537,7 @@ public AutonomousDatabaseSummary build() { this.serviceConsoleUrl, this.connectionStrings, this.connectionUrls, + this.publicConnectionUrls, this.licenseModel, this.usedDataStorageSizeInTBs, this.freeformTags, @@ -2506,6 +2545,7 @@ public AutonomousDatabaseSummary build() { this.subnetId, this.nsgIds, this.privateEndpoint, + this.publicEndpoint, this.privateEndpointLabel, this.privateEndpointIp, this.dbVersion, @@ -2705,6 +2745,9 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("connectionUrls")) { this.connectionUrls(model.getConnectionUrls()); } + if (model.wasPropertyExplicitlySet("publicConnectionUrls")) { + this.publicConnectionUrls(model.getPublicConnectionUrls()); + } if (model.wasPropertyExplicitlySet("licenseModel")) { this.licenseModel(model.getLicenseModel()); } @@ -2726,6 +2769,9 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("privateEndpoint")) { this.privateEndpoint(model.getPrivateEndpoint()); } + if (model.wasPropertyExplicitlySet("publicEndpoint")) { + this.publicEndpoint(model.getPublicEndpoint()); + } if (model.wasPropertyExplicitlySet("privateEndpointLabel")) { this.privateEndpointLabel(model.getPrivateEndpointLabel()); } @@ -3714,6 +3760,20 @@ public AutonomousDatabaseConnectionUrls getConnectionUrls() { return connectionUrls; } + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicConnectionUrls") + private final AutonomousDatabaseConnectionUrls publicConnectionUrls; + + /** + * The Public URLs of Private Endpoint database for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. + * @return the value + **/ + public AutonomousDatabaseConnectionUrls getPublicConnectionUrls() { + return publicConnectionUrls; + } + /** * The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. * License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. @@ -3916,6 +3976,20 @@ public String getPrivateEndpoint() { return privateEndpoint; } + /** + * The public endpoint for the private endpoint enabled resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("publicEndpoint") + private final String publicEndpoint; + + /** + * The public endpoint for the private endpoint enabled resource. + * @return the value + **/ + public String getPublicEndpoint() { + return publicEndpoint; + } + /** * The resource's private endpoint label. * - Setting the endpoint label to a non-empty string creates a private endpoint database. @@ -5765,6 +5839,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serviceConsoleUrl=").append(String.valueOf(this.serviceConsoleUrl)); sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); sb.append(", connectionUrls=").append(String.valueOf(this.connectionUrls)); + sb.append(", publicConnectionUrls=").append(String.valueOf(this.publicConnectionUrls)); sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); sb.append(", usedDataStorageSizeInTBs=") .append(String.valueOf(this.usedDataStorageSizeInTBs)); @@ -5773,6 +5848,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint)); + sb.append(", publicEndpoint=").append(String.valueOf(this.publicEndpoint)); sb.append(", privateEndpointLabel=").append(String.valueOf(this.privateEndpointLabel)); sb.append(", privateEndpointIp=").append(String.valueOf(this.privateEndpointIp)); sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); @@ -5932,6 +6008,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.serviceConsoleUrl, other.serviceConsoleUrl) && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) && java.util.Objects.equals(this.connectionUrls, other.connectionUrls) + && java.util.Objects.equals(this.publicConnectionUrls, other.publicConnectionUrls) && java.util.Objects.equals(this.licenseModel, other.licenseModel) && java.util.Objects.equals( this.usedDataStorageSizeInTBs, other.usedDataStorageSizeInTBs) @@ -5940,6 +6017,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) + && java.util.Objects.equals(this.publicEndpoint, other.publicEndpoint) && java.util.Objects.equals(this.privateEndpointLabel, other.privateEndpointLabel) && java.util.Objects.equals(this.privateEndpointIp, other.privateEndpointIp) && java.util.Objects.equals(this.dbVersion, other.dbVersion) @@ -6165,6 +6243,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionUrls == null ? 43 : this.connectionUrls.hashCode()); + result = + (result * PRIME) + + (this.publicConnectionUrls == null + ? 43 + : this.publicConnectionUrls.hashCode()); result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); result = (result * PRIME) @@ -6178,6 +6261,9 @@ public int hashCode() { result = (result * PRIME) + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); + result = + (result * PRIME) + + (this.publicEndpoint == null ? 43 : this.publicEndpoint.hashCode()); result = (result * PRIME) + (this.privateEndpointLabel == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 0623668c3b..d53e10d2dc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -46,6 +46,10 @@ value = CreateCrossRegionDisasterRecoveryDetails.class, name = "CROSS_REGION_DISASTER_RECOVERY" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateCrossTenancyDisasterRecoveryDetails.class, + name = "CROSS_TENANCY_DISASTER_RECOVERY" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAutonomousDatabaseFromBackupTimestampDetails.class, name = "BACKUP_FROM_TIMESTAMP" diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java new file mode 100644 index 0000000000..f9f2e38ab3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java @@ -0,0 +1,990 @@ +/** + * 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.database.model; + +/** + * The following are the details necessary to create a cross-tenancy disaster recovery (DR) association for an existing Autonomous Database. This may be in the same region, or in another. + * *IMPORTANT* + * For creating a standby databases in a cross-tenancy local DR association: + * - To create the standby database in different tenancy, use the compartment OCID in the tenancy where the standby is located. + * - To create the request in the standby database, the sourceId value must be the OCID of the primary database. + * - Creating a ADG DR in the same tenancy and region is not allowed. Use changeDisasterRecoveryConfiguration instead. + * The following parameters are required for the cross-tenancy standby database + * - disasterRecoveryType + * The following parameters are optional for the cross-tenancy standby database. If included in the request, these parameters must contain the same values as the source Autonomous Database: + * - dbName + * - dbVersion + * - ecpuCount + * - dataStorageSizeInTB + * - customerContacts + * - scheduledOperations + * - isAutoScalingForStorageEnabled + * - definedTags + * - freeformTags + * - licenseModel + * - whitelistedIps + * - isMtlsConnectionRequired + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCrossTenancyDisasterRecoveryDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateCrossTenancyDisasterRecoveryDetails extends CreateAutonomousDatabaseBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @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("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private Integer cpuCoreCount; + + public Builder cpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + this.__explicitlySet__.add("cpuCoreCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupRetentionPeriodInDays") + private Integer backupRetentionPeriodInDays; + + public Builder backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays) { + this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; + this.__explicitlySet__.add("backupRetentionPeriodInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeModel") + private ComputeModel computeModel; + + public Builder computeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + this.__explicitlySet__.add("computeModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCount") + private Float computeCount; + + public Builder computeCount(Float computeCount) { + this.computeCount = computeCount; + this.__explicitlySet__.add("computeCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ocpuCount") + private Float ocpuCount; + + public Builder ocpuCount(Float ocpuCount) { + this.ocpuCount = ocpuCount; + this.__explicitlySet__.add("ocpuCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") + private DbWorkload dbWorkload; + + public Builder dbWorkload(DbWorkload dbWorkload) { + this.dbWorkload = dbWorkload; + this.__explicitlySet__.add("dbWorkload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs") + private Integer dataStorageSizeInTBs; + + public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) { + this.dataStorageSizeInTBs = dataStorageSizeInTBs; + this.__explicitlySet__.add("dataStorageSizeInTBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isFreeTier") + private Boolean isFreeTier; + + public Builder isFreeTier(Boolean isFreeTier) { + this.isFreeTier = isFreeTier; + this.__explicitlySet__.add("isFreeTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + + @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("adminPassword") + private String adminPassword; + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword; + this.__explicitlySet__.add("adminPassword"); + 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("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isPreviewVersionWithServiceTermsAccepted") + private Boolean isPreviewVersionWithServiceTermsAccepted; + + public Builder isPreviewVersionWithServiceTermsAccepted( + Boolean isPreviewVersionWithServiceTermsAccepted) { + this.isPreviewVersionWithServiceTermsAccepted = + isPreviewVersionWithServiceTermsAccepted; + this.__explicitlySet__.add("isPreviewVersionWithServiceTermsAccepted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") + private Boolean isDevTier; + + public Builder isDevTier(Boolean isDevTier) { + this.isDevTier = isDevTier; + this.__explicitlySet__.add("isDevTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") + private Boolean isDedicated; + + public Builder isDedicated(Boolean isDedicated) { + this.isDedicated = isDedicated; + this.__explicitlySet__.add("isDedicated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autonomousContainerDatabaseId") + private String autonomousContainerDatabaseId; + + public Builder autonomousContainerDatabaseId(String autonomousContainerDatabaseId) { + this.autonomousContainerDatabaseId = autonomousContainerDatabaseId; + this.__explicitlySet__.add("autonomousContainerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("inMemoryPercentage") + private Integer inMemoryPercentage; + + public Builder inMemoryPercentage(Integer inMemoryPercentage) { + this.inMemoryPercentage = inMemoryPercentage; + this.__explicitlySet__.add("inMemoryPercentage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAccessControlEnabled") + private Boolean isAccessControlEnabled; + + public Builder isAccessControlEnabled(Boolean isAccessControlEnabled) { + this.isAccessControlEnabled = isAccessControlEnabled; + this.__explicitlySet__.add("isAccessControlEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("whitelistedIps") + private java.util.List whitelistedIps; + + public Builder whitelistedIps(java.util.List whitelistedIps) { + this.whitelistedIps = whitelistedIps; + this.__explicitlySet__.add("whitelistedIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("arePrimaryWhitelistedIpsUsed") + private Boolean arePrimaryWhitelistedIpsUsed; + + public Builder arePrimaryWhitelistedIpsUsed(Boolean arePrimaryWhitelistedIpsUsed) { + this.arePrimaryWhitelistedIpsUsed = arePrimaryWhitelistedIpsUsed; + this.__explicitlySet__.add("arePrimaryWhitelistedIpsUsed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("standbyWhitelistedIps") + private java.util.List standbyWhitelistedIps; + + public Builder standbyWhitelistedIps(java.util.List standbyWhitelistedIps) { + this.standbyWhitelistedIps = standbyWhitelistedIps; + this.__explicitlySet__.add("standbyWhitelistedIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDataGuardEnabled") + private Boolean isDataGuardEnabled; + + public Builder isDataGuardEnabled(Boolean isDataGuardEnabled) { + this.isDataGuardEnabled = isDataGuardEnabled; + this.__explicitlySet__.add("isDataGuardEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isLocalDataGuardEnabled") + private Boolean isLocalDataGuardEnabled; + + public Builder isLocalDataGuardEnabled(Boolean isLocalDataGuardEnabled) { + this.isLocalDataGuardEnabled = isLocalDataGuardEnabled; + this.__explicitlySet__.add("isLocalDataGuardEnabled"); + 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("privateEndpointLabel") + private String privateEndpointLabel; + + public Builder privateEndpointLabel(String privateEndpointLabel) { + this.privateEndpointLabel = privateEndpointLabel; + this.__explicitlySet__.add("privateEndpointLabel"); + 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("privateEndpointIp") + private String privateEndpointIp; + + public Builder privateEndpointIp(String privateEndpointIp) { + this.privateEndpointIp = privateEndpointIp; + this.__explicitlySet__.add("privateEndpointIp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private java.util.List customerContacts; + + public Builder customerContacts(java.util.List customerContacts) { + this.customerContacts = customerContacts; + this.__explicitlySet__.add("customerContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsConnectionRequired") + private Boolean isMtlsConnectionRequired; + + public Builder isMtlsConnectionRequired(Boolean isMtlsConnectionRequired) { + this.isMtlsConnectionRequired = isMtlsConnectionRequired; + this.__explicitlySet__.add("isMtlsConnectionRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourcePoolLeaderId") + private String resourcePoolLeaderId; + + public Builder resourcePoolLeaderId(String resourcePoolLeaderId) { + this.resourcePoolLeaderId = resourcePoolLeaderId; + this.__explicitlySet__.add("resourcePoolLeaderId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourcePoolSummary") + private ResourcePoolSummary resourcePoolSummary; + + public Builder resourcePoolSummary(ResourcePoolSummary resourcePoolSummary) { + this.resourcePoolSummary = resourcePoolSummary; + this.__explicitlySet__.add("resourcePoolSummary"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autonomousMaintenanceScheduleType") + private AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType; + + public Builder autonomousMaintenanceScheduleType( + AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType) { + this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; + this.__explicitlySet__.add("autonomousMaintenanceScheduleType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledOperations") + private java.util.List scheduledOperations; + + public Builder scheduledOperations( + java.util.List scheduledOperations) { + this.scheduledOperations = scheduledOperations; + this.__explicitlySet__.add("scheduledOperations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingForStorageEnabled") + private Boolean isAutoScalingForStorageEnabled; + + public Builder isAutoScalingForStorageEnabled(Boolean isAutoScalingForStorageEnabled) { + this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; + this.__explicitlySet__.add("isAutoScalingForStorageEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private AutonomousDatabaseSummary.DatabaseEdition databaseEdition; + + public Builder databaseEdition(AutonomousDatabaseSummary.DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbToolsDetails") + private java.util.List dbToolsDetails; + + public Builder dbToolsDetails(java.util.List dbToolsDetails) { + this.dbToolsDetails = dbToolsDetails; + this.__explicitlySet__.add("dbToolsDetails"); + 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("secretVersionNumber") + private Integer secretVersionNumber; + + public Builder secretVersionNumber(Integer secretVersionNumber) { + this.secretVersionNumber = secretVersionNumber; + this.__explicitlySet__.add("secretVersionNumber"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new peer database for the DR association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private String sourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new peer database for the DR association. + * @param sourceId the value to set + * @return this builder + **/ + public Builder sourceId(String sourceId) { + this.sourceId = sourceId; + this.__explicitlySet__.add("sourceId"); + return this; + } + /** + * Indicates the disaster recovery (DR) type of the standby Autonomous Database Serverless instance. + * Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. + * Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryType") + private DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType; + + /** + * Indicates the disaster recovery (DR) type of the standby Autonomous Database Serverless instance. + * Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. + * Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. + * + * @param disasterRecoveryType the value to set + * @return this builder + **/ + public Builder disasterRecoveryType( + DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType) { + this.disasterRecoveryType = disasterRecoveryType; + this.__explicitlySet__.add("disasterRecoveryType"); + return this; + } + /** + * If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isReplicateAutomaticBackups") + private Boolean isReplicateAutomaticBackups; + + /** + * If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + * @param isReplicateAutomaticBackups the value to set + * @return this builder + **/ + public Builder isReplicateAutomaticBackups(Boolean isReplicateAutomaticBackups) { + this.isReplicateAutomaticBackups = isReplicateAutomaticBackups; + this.__explicitlySet__.add("isReplicateAutomaticBackups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCrossTenancyDisasterRecoveryDetails build() { + CreateCrossTenancyDisasterRecoveryDetails model = + new CreateCrossTenancyDisasterRecoveryDetails( + this.compartmentId, + this.characterSet, + this.ncharacterSet, + this.dbName, + this.cpuCoreCount, + this.backupRetentionPeriodInDays, + this.computeModel, + this.computeCount, + this.ocpuCount, + this.dbWorkload, + this.dataStorageSizeInTBs, + this.dataStorageSizeInGBs, + this.isFreeTier, + this.kmsKeyId, + this.vaultId, + this.adminPassword, + this.displayName, + this.licenseModel, + this.isPreviewVersionWithServiceTermsAccepted, + this.isAutoScalingEnabled, + this.isDevTier, + this.isDedicated, + this.autonomousContainerDatabaseId, + this.inMemoryPercentage, + this.isAccessControlEnabled, + this.whitelistedIps, + this.arePrimaryWhitelistedIpsUsed, + this.standbyWhitelistedIps, + this.isDataGuardEnabled, + this.isLocalDataGuardEnabled, + this.subnetId, + this.nsgIds, + this.privateEndpointLabel, + this.freeformTags, + this.definedTags, + this.privateEndpointIp, + this.dbVersion, + this.customerContacts, + this.isMtlsConnectionRequired, + this.resourcePoolLeaderId, + this.resourcePoolSummary, + this.autonomousMaintenanceScheduleType, + this.scheduledOperations, + this.isAutoScalingForStorageEnabled, + this.databaseEdition, + this.dbToolsDetails, + this.secretId, + this.secretVersionNumber, + this.sourceId, + this.disasterRecoveryType, + this.isReplicateAutomaticBackups); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCrossTenancyDisasterRecoveryDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("characterSet")) { + this.characterSet(model.getCharacterSet()); + } + if (model.wasPropertyExplicitlySet("ncharacterSet")) { + this.ncharacterSet(model.getNcharacterSet()); + } + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("backupRetentionPeriodInDays")) { + this.backupRetentionPeriodInDays(model.getBackupRetentionPeriodInDays()); + } + if (model.wasPropertyExplicitlySet("computeModel")) { + this.computeModel(model.getComputeModel()); + } + if (model.wasPropertyExplicitlySet("computeCount")) { + this.computeCount(model.getComputeCount()); + } + if (model.wasPropertyExplicitlySet("ocpuCount")) { + this.ocpuCount(model.getOcpuCount()); + } + if (model.wasPropertyExplicitlySet("dbWorkload")) { + this.dbWorkload(model.getDbWorkload()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInTBs")) { + this.dataStorageSizeInTBs(model.getDataStorageSizeInTBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("isFreeTier")) { + this.isFreeTier(model.getIsFreeTier()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("adminPassword")) { + this.adminPassword(model.getAdminPassword()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("isPreviewVersionWithServiceTermsAccepted")) { + this.isPreviewVersionWithServiceTermsAccepted( + model.getIsPreviewVersionWithServiceTermsAccepted()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("isDevTier")) { + this.isDevTier(model.getIsDevTier()); + } + if (model.wasPropertyExplicitlySet("isDedicated")) { + this.isDedicated(model.getIsDedicated()); + } + if (model.wasPropertyExplicitlySet("autonomousContainerDatabaseId")) { + this.autonomousContainerDatabaseId(model.getAutonomousContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("inMemoryPercentage")) { + this.inMemoryPercentage(model.getInMemoryPercentage()); + } + if (model.wasPropertyExplicitlySet("isAccessControlEnabled")) { + this.isAccessControlEnabled(model.getIsAccessControlEnabled()); + } + if (model.wasPropertyExplicitlySet("whitelistedIps")) { + this.whitelistedIps(model.getWhitelistedIps()); + } + if (model.wasPropertyExplicitlySet("arePrimaryWhitelistedIpsUsed")) { + this.arePrimaryWhitelistedIpsUsed(model.getArePrimaryWhitelistedIpsUsed()); + } + if (model.wasPropertyExplicitlySet("standbyWhitelistedIps")) { + this.standbyWhitelistedIps(model.getStandbyWhitelistedIps()); + } + if (model.wasPropertyExplicitlySet("isDataGuardEnabled")) { + this.isDataGuardEnabled(model.getIsDataGuardEnabled()); + } + if (model.wasPropertyExplicitlySet("isLocalDataGuardEnabled")) { + this.isLocalDataGuardEnabled(model.getIsLocalDataGuardEnabled()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("privateEndpointLabel")) { + this.privateEndpointLabel(model.getPrivateEndpointLabel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIp")) { + this.privateEndpointIp(model.getPrivateEndpointIp()); + } + if (model.wasPropertyExplicitlySet("dbVersion")) { + this.dbVersion(model.getDbVersion()); + } + if (model.wasPropertyExplicitlySet("customerContacts")) { + this.customerContacts(model.getCustomerContacts()); + } + if (model.wasPropertyExplicitlySet("isMtlsConnectionRequired")) { + this.isMtlsConnectionRequired(model.getIsMtlsConnectionRequired()); + } + if (model.wasPropertyExplicitlySet("resourcePoolLeaderId")) { + this.resourcePoolLeaderId(model.getResourcePoolLeaderId()); + } + if (model.wasPropertyExplicitlySet("resourcePoolSummary")) { + this.resourcePoolSummary(model.getResourcePoolSummary()); + } + if (model.wasPropertyExplicitlySet("autonomousMaintenanceScheduleType")) { + this.autonomousMaintenanceScheduleType( + model.getAutonomousMaintenanceScheduleType()); + } + if (model.wasPropertyExplicitlySet("scheduledOperations")) { + this.scheduledOperations(model.getScheduledOperations()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingForStorageEnabled")) { + this.isAutoScalingForStorageEnabled(model.getIsAutoScalingForStorageEnabled()); + } + if (model.wasPropertyExplicitlySet("databaseEdition")) { + this.databaseEdition(model.getDatabaseEdition()); + } + if (model.wasPropertyExplicitlySet("dbToolsDetails")) { + this.dbToolsDetails(model.getDbToolsDetails()); + } + if (model.wasPropertyExplicitlySet("secretId")) { + this.secretId(model.getSecretId()); + } + if (model.wasPropertyExplicitlySet("secretVersionNumber")) { + this.secretVersionNumber(model.getSecretVersionNumber()); + } + if (model.wasPropertyExplicitlySet("sourceId")) { + this.sourceId(model.getSourceId()); + } + if (model.wasPropertyExplicitlySet("disasterRecoveryType")) { + this.disasterRecoveryType(model.getDisasterRecoveryType()); + } + if (model.wasPropertyExplicitlySet("isReplicateAutomaticBackups")) { + this.isReplicateAutomaticBackups(model.getIsReplicateAutomaticBackups()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateCrossTenancyDisasterRecoveryDetails( + String compartmentId, + String characterSet, + String ncharacterSet, + String dbName, + Integer cpuCoreCount, + Integer backupRetentionPeriodInDays, + ComputeModel computeModel, + Float computeCount, + Float ocpuCount, + DbWorkload dbWorkload, + Integer dataStorageSizeInTBs, + Integer dataStorageSizeInGBs, + Boolean isFreeTier, + String kmsKeyId, + String vaultId, + String adminPassword, + String displayName, + LicenseModel licenseModel, + Boolean isPreviewVersionWithServiceTermsAccepted, + Boolean isAutoScalingEnabled, + Boolean isDevTier, + Boolean isDedicated, + String autonomousContainerDatabaseId, + Integer inMemoryPercentage, + Boolean isAccessControlEnabled, + java.util.List whitelistedIps, + Boolean arePrimaryWhitelistedIpsUsed, + java.util.List standbyWhitelistedIps, + Boolean isDataGuardEnabled, + Boolean isLocalDataGuardEnabled, + String subnetId, + java.util.List nsgIds, + String privateEndpointLabel, + java.util.Map freeformTags, + java.util.Map> definedTags, + String privateEndpointIp, + String dbVersion, + java.util.List customerContacts, + Boolean isMtlsConnectionRequired, + String resourcePoolLeaderId, + ResourcePoolSummary resourcePoolSummary, + AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, + java.util.List scheduledOperations, + Boolean isAutoScalingForStorageEnabled, + AutonomousDatabaseSummary.DatabaseEdition databaseEdition, + java.util.List dbToolsDetails, + String secretId, + Integer secretVersionNumber, + String sourceId, + DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType, + Boolean isReplicateAutomaticBackups) { + super( + compartmentId, + characterSet, + ncharacterSet, + dbName, + cpuCoreCount, + backupRetentionPeriodInDays, + computeModel, + computeCount, + ocpuCount, + dbWorkload, + dataStorageSizeInTBs, + dataStorageSizeInGBs, + isFreeTier, + kmsKeyId, + vaultId, + adminPassword, + displayName, + licenseModel, + isPreviewVersionWithServiceTermsAccepted, + isAutoScalingEnabled, + isDevTier, + isDedicated, + autonomousContainerDatabaseId, + inMemoryPercentage, + isAccessControlEnabled, + whitelistedIps, + arePrimaryWhitelistedIpsUsed, + standbyWhitelistedIps, + isDataGuardEnabled, + isLocalDataGuardEnabled, + subnetId, + nsgIds, + privateEndpointLabel, + freeformTags, + definedTags, + privateEndpointIp, + dbVersion, + customerContacts, + isMtlsConnectionRequired, + resourcePoolLeaderId, + resourcePoolSummary, + autonomousMaintenanceScheduleType, + scheduledOperations, + isAutoScalingForStorageEnabled, + databaseEdition, + dbToolsDetails, + secretId, + secretVersionNumber); + this.sourceId = sourceId; + this.disasterRecoveryType = disasterRecoveryType; + this.isReplicateAutomaticBackups = isReplicateAutomaticBackups; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new peer database for the DR association. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private final String sourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new peer database for the DR association. + * @return the value + **/ + public String getSourceId() { + return sourceId; + } + + /** + * Indicates the disaster recovery (DR) type of the standby Autonomous Database Serverless instance. + * Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. + * Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryType") + private final DisasterRecoveryConfiguration.DisasterRecoveryType disasterRecoveryType; + + /** + * Indicates the disaster recovery (DR) type of the standby Autonomous Database Serverless instance. + * Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. + * Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. + * + * @return the value + **/ + public DisasterRecoveryConfiguration.DisasterRecoveryType getDisasterRecoveryType() { + return disasterRecoveryType; + } + + /** + * If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isReplicateAutomaticBackups") + private final Boolean isReplicateAutomaticBackups; + + /** + * If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + * @return the value + **/ + public Boolean getIsReplicateAutomaticBackups() { + return isReplicateAutomaticBackups; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateCrossTenancyDisasterRecoveryDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceId=").append(String.valueOf(this.sourceId)); + sb.append(", disasterRecoveryType=").append(String.valueOf(this.disasterRecoveryType)); + sb.append(", isReplicateAutomaticBackups=") + .append(String.valueOf(this.isReplicateAutomaticBackups)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateCrossTenancyDisasterRecoveryDetails)) { + return false; + } + + CreateCrossTenancyDisasterRecoveryDetails other = + (CreateCrossTenancyDisasterRecoveryDetails) o; + return java.util.Objects.equals(this.sourceId, other.sourceId) + && java.util.Objects.equals(this.disasterRecoveryType, other.disasterRecoveryType) + && java.util.Objects.equals( + this.isReplicateAutomaticBackups, other.isReplicateAutomaticBackups) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.sourceId == null ? 43 : this.sourceId.hashCode()); + result = + (result * PRIME) + + (this.disasterRecoveryType == null + ? 43 + : this.disasterRecoveryType.hashCode()); + result = + (result * PRIME) + + (this.isReplicateAutomaticBackups == null + ? 43 + : this.isReplicateAutomaticBackups.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java index 3de0a6e795..66a6aa991d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java @@ -230,6 +230,7 @@ public String getPassword() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java index 5683c10392..5d2f1dedd7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java @@ -257,6 +257,7 @@ public String getPassword() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableDatabaseManagementDetails.java index 765f7ecb48..f91cf124e6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableDatabaseManagementDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableDatabaseManagementDetails.java @@ -409,6 +409,7 @@ public String getSslSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/EnablePluggableDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnablePluggableDatabaseManagementDetails.java index f365c436e4..1725f03610 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/EnablePluggableDatabaseManagementDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnablePluggableDatabaseManagementDetails.java @@ -337,6 +337,7 @@ public String getSslSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyDatabaseManagementDetails.java index d71c558cae..1d4c1658f7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyDatabaseManagementDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyDatabaseManagementDetails.java @@ -409,6 +409,7 @@ public String getSslSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyPluggableDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyPluggableDatabaseManagementDetails.java index 9830aa8d89..e513974de2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyPluggableDatabaseManagementDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ModifyPluggableDatabaseManagementDetails.java @@ -337,6 +337,7 @@ public String getSslSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), ; private final String value; diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasePeersRequest.java similarity index 61% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java rename to bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasePeersRequest.java index 9a97be783e..f7a24d2fcc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasePeersRequest.java @@ -2,144 +2,129 @@ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.databasemigration.requests; +package com.oracle.bmc.database.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.database.model.*; /** - * Example: Click here to see how to use ListAgentImagesRequest. + * Example: Click here to see how to use ListAutonomousDatabasePeersRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentImagesRequest extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAutonomousDatabasePeersRequest + extends com.oracle.bmc.requests.BmcRequest { /** - * The maximum number of items to return. - * + * The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). */ - private Integer limit; + private String autonomousDatabaseId; /** - * The maximum number of items to return. - * + * The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). */ - public Integer getLimit() { - return limit; + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; } /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * Unique identifier for the request. * */ - private String page; + private String opcRequestId; /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * Unique identifier for the request. * */ - public String getPage() { - return page; + public String getOpcRequestId() { + return opcRequestId; } /** - * The sort order to use, either 'asc' or 'desc'. - * + * The maximum number of items to return per page. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + private Integer limit; /** - * The sort order to use, either 'asc' or 'desc'. - * + * The maximum number of items to return per page. */ - public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { - return sortOrder; + public Integer getLimit() { + return limit; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The pagination token to continue listing from. */ - private String opcRequestId; + private String page; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The pagination token to continue listing from. */ - public String getOpcRequestId() { - return opcRequestId; + public String getPage() { + return page; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ListAgentImagesRequest, java.lang.Void> { + ListAutonomousDatabasePeersRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The maximum number of items to return. - * + * The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). */ - private Integer limit = null; + private String autonomousDatabaseId = null; /** - * The maximum number of items to return. - * - * @param limit the value to set + * The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * @param autonomousDatabaseId the value to set * @return this builder instance */ - public Builder limit(Integer limit) { - this.limit = limit; + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; return this; } /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * Unique identifier for the request. * */ - private String page = null; + private String opcRequestId = null; /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * Unique identifier for the request. * - * @param page the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder page(String page) { - this.page = page; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * The sort order to use, either 'asc' or 'desc'. - * + * The maximum number of items to return per page. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; + private Integer limit = null; /** - * The sort order to use, either 'asc' or 'desc'. - * - * @param sortOrder the value to set + * The maximum number of items to return per page. + * @param limit the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { - this.sortOrder = sortOrder; + public Builder limit(Integer limit) { + this.limit = limit; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The pagination token to continue listing from. */ - private String opcRequestId = null; + private String page = 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 + * The pagination token to continue listing from. + * @param page the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder page(String page) { + this.page = page; return this; } @@ -170,49 +155,49 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListAgentImagesRequest o) { + public Builder copy(ListAutonomousDatabasePeersRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); 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 + * Build the instance of ListAutonomousDatabasePeersRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ListAgentImagesRequest + * @return instance of ListAutonomousDatabasePeersRequest */ - public ListAgentImagesRequest build() { - ListAgentImagesRequest request = buildWithoutInvocationCallback(); + public ListAutonomousDatabasePeersRequest build() { + ListAutonomousDatabasePeersRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListAgentImagesRequest as configured by this builder + * Build the instance of ListAutonomousDatabasePeersRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ListAgentImagesRequest + * @return instance of ListAutonomousDatabasePeersRequest */ - public ListAgentImagesRequest buildWithoutInvocationCallback() { - ListAgentImagesRequest request = new ListAgentImagesRequest(); + public ListAutonomousDatabasePeersRequest buildWithoutInvocationCallback() { + ListAutonomousDatabasePeersRequest request = new ListAutonomousDatabasePeersRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.opcRequestId = opcRequestId; request.limit = limit; request.page = page; - request.sortOrder = sortOrder; - request.opcRequestId = opcRequestId; return request; - // new ListAgentImagesRequest(limit, page, sortOrder, opcRequestId); + // new ListAutonomousDatabasePeersRequest(autonomousDatabaseId, opcRequestId, limit, page); } } @@ -222,10 +207,10 @@ public ListAgentImagesRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() + .autonomousDatabaseId(autonomousDatabaseId) + .opcRequestId(opcRequestId) .limit(limit) - .page(page) - .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .page(page); } /** @@ -241,10 +226,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -254,26 +239,30 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListAgentImagesRequest)) { + if (!(o instanceof ListAutonomousDatabasePeersRequest)) { return false; } - ListAgentImagesRequest other = (ListAgentImagesRequest) o; + ListAutonomousDatabasePeersRequest other = (ListAutonomousDatabasePeersRequest) o; return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.page, other.page); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - 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-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasePeersResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasePeersResponse.java new file mode 100644 index 0000000000..f7ee8ddd2f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasePeersResponse.java @@ -0,0 +1,239 @@ +/** + * 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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAutonomousDatabasePeersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned AutonomousDatabasePeerCollection instance. + */ + private com.oracle.bmc.database.model.AutonomousDatabasePeerCollection + autonomousDatabasePeerCollection; + + /** + * The returned AutonomousDatabasePeerCollection instance. + * @return the value + */ + public com.oracle.bmc.database.model.AutonomousDatabasePeerCollection + getAutonomousDatabasePeerCollection() { + return autonomousDatabasePeerCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "autonomousDatabasePeerCollection" + }) + private ListAutonomousDatabasePeersResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.AutonomousDatabasePeerCollection + autonomousDatabasePeerCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.autonomousDatabasePeerCollection = autonomousDatabasePeerCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned AutonomousDatabasePeerCollection instance. + */ + private com.oracle.bmc.database.model.AutonomousDatabasePeerCollection + autonomousDatabasePeerCollection; + + /** + * The returned AutonomousDatabasePeerCollection instance. + * @param autonomousDatabasePeerCollection the value to set + * @return this builder + */ + public Builder autonomousDatabasePeerCollection( + com.oracle.bmc.database.model.AutonomousDatabasePeerCollection + autonomousDatabasePeerCollection) { + this.autonomousDatabasePeerCollection = autonomousDatabasePeerCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAutonomousDatabasePeersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + autonomousDatabasePeerCollection(o.getAutonomousDatabasePeerCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAutonomousDatabasePeersResponse build() { + return new ListAutonomousDatabasePeersResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + autonomousDatabasePeerCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",autonomousDatabasePeerCollection=") + .append(String.valueOf(autonomousDatabasePeerCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAutonomousDatabasePeersResponse)) { + return false; + } + + ListAutonomousDatabasePeersResponse other = (ListAutonomousDatabasePeersResponse) 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.autonomousDatabasePeerCollection, + other.autonomousDatabasePeerCollection); + } + + @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.autonomousDatabasePeerCollection == null + ? 43 + : this.autonomousDatabasePeerCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 47ae913802..e1b26b06b0 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-databasemanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java index cc0ae963b0..f56be71ded 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java @@ -1143,6 +1143,22 @@ GetDatabaseFleetHealthMetricsResponse getDatabaseFleetHealthMetrics( */ GetDatabaseHomeMetricsResponse getDatabaseHomeMetrics(GetDatabaseHomeMetricsRequest request); + /** + * Gets a historical summary of the Database Guard performance metrics for Managed Databases. + * If the peerDatabaseCompartmentId is specified, then the metrics are only retrieved from the specified compartment. + * If the peerDatabaseCompartmentId is not specified, then the metrics are retrieved from the compartment of the Managed Database specified by the ManagedDatabaseId. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDataguardPerformanceMetrics API. + */ + GetDataguardPerformanceMetricsResponse getDataguardPerformanceMetrics( + GetDataguardPerformanceMetricsRequest request); + /** * Gets the details of a specific Database Management private endpoint. * @param request The request object containing the details to send @@ -1522,6 +1538,21 @@ GetOptimizerStatisticsCollectionOperationResponse getOptimizerStatisticsCollecti */ GetPdbMetricsResponse getPdbMetrics(GetPdbMetricsRequest request); + /** + * Gets a comparative summary of the baseline and target values of the Data Guard performance metrics for Managed Databases. + * If the peerDatabaseCompartmentId is specified, then the metrics are only retrieved from the specified compartment. + * If the peerDatabaseCompartmentId is not specified, then the metrics are retrieved from the compartment of the Managed Database specified by the ManagedDatabaseId. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetPeerDatabaseMetrics API. + */ + GetPeerDatabaseMetricsResponse getPeerDatabaseMetrics(GetPeerDatabaseMetricsRequest request); + /** * Gets the preferred credential details for a Managed Database based on credentialName. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java index 962823c0ff..be829c1136 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java @@ -1439,6 +1439,27 @@ java.util.concurrent.Future getDatabaseHomeMetri GetDatabaseHomeMetricsRequest, GetDatabaseHomeMetricsResponse> handler); + /** + * Gets a historical summary of the Database Guard performance metrics for Managed Databases. + * If the peerDatabaseCompartmentId is specified, then the metrics are only retrieved from the specified compartment. + * If the peerDatabaseCompartmentId is not specified, then the metrics are retrieved from the compartment of the Managed Database specified by the ManagedDatabaseId. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getDataguardPerformanceMetrics( + GetDataguardPerformanceMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDataguardPerformanceMetricsRequest, + GetDataguardPerformanceMetricsResponse> + handler); + /** * Gets the details of a specific Database Management private endpoint. * @@ -1926,6 +1947,25 @@ java.util.concurrent.Future getPdbMetrics( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets a comparative summary of the baseline and target values of the Data Guard performance metrics for Managed Databases. + * If the peerDatabaseCompartmentId is specified, then the metrics are only retrieved from the specified compartment. + * If the peerDatabaseCompartmentId is not specified, then the metrics are retrieved from the compartment of the Managed Database specified by the ManagedDatabaseId. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getPeerDatabaseMetrics( + GetPeerDatabaseMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetPeerDatabaseMetricsRequest, GetPeerDatabaseMetricsResponse> + handler); + /** * Gets the preferred credential details for a Managed Database based on credentialName. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java index b3839081f0..f48879f0b4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java @@ -4379,6 +4379,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getDataguardPerformanceMetrics( + GetDataguardPerformanceMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDataguardPerformanceMetricsRequest, + GetDataguardPerformanceMetricsResponse> + handler) { + LOG.trace("Called async getDataguardPerformanceMetrics"); + final GetDataguardPerformanceMetricsRequest interceptedRequest = + GetDataguardPerformanceMetricsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataguardPerformanceMetricsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbManagement", + "GetDataguardPerformanceMetrics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DataguardPerformanceMetrics/GetDataguardPerformanceMetrics"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDataguardPerformanceMetricsResponse> + transformer = + GetDataguardPerformanceMetricsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDataguardPerformanceMetricsRequest, + GetDataguardPerformanceMetricsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDataguardPerformanceMetricsRequest, + GetDataguardPerformanceMetricsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDataguardPerformanceMetricsRequest, GetDataguardPerformanceMetricsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getDbManagementPrivateEndpoint( @@ -5737,6 +5789,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getPeerDatabaseMetrics( + GetPeerDatabaseMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetPeerDatabaseMetricsRequest, GetPeerDatabaseMetricsResponse> + handler) { + LOG.trace("Called async getPeerDatabaseMetrics"); + final GetPeerDatabaseMetricsRequest interceptedRequest = + GetPeerDatabaseMetricsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPeerDatabaseMetricsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbManagement", + "GetPeerDatabaseMetrics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/PeerDatabaseMetrics/GetPeerDatabaseMetrics"); + final java.util.function.Function + transformer = + GetPeerDatabaseMetricsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetPeerDatabaseMetricsRequest, GetPeerDatabaseMetricsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetPeerDatabaseMetricsRequest, GetPeerDatabaseMetricsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetPeerDatabaseMetricsRequest, GetPeerDatabaseMetricsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getPreferredCredential( GetPreferredCredentialRequest request, diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java index b98dbf8347..5540d8d705 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java @@ -3579,6 +3579,45 @@ public GetDatabaseHomeMetricsResponse getDatabaseHomeMetrics( }); } + @Override + public GetDataguardPerformanceMetricsResponse getDataguardPerformanceMetrics( + GetDataguardPerformanceMetricsRequest request) { + LOG.trace("Called getDataguardPerformanceMetrics"); + final GetDataguardPerformanceMetricsRequest interceptedRequest = + GetDataguardPerformanceMetricsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataguardPerformanceMetricsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbManagement", + "GetDataguardPerformanceMetrics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DataguardPerformanceMetrics/GetDataguardPerformanceMetrics"); + java.util.function.Function< + javax.ws.rs.core.Response, GetDataguardPerformanceMetricsResponse> + transformer = + GetDataguardPerformanceMetricsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetDbManagementPrivateEndpointResponse getDbManagementPrivateEndpoint( GetDbManagementPrivateEndpointRequest request) { @@ -4632,6 +4671,44 @@ public GetPdbMetricsResponse getPdbMetrics(GetPdbMetricsRequest request) { }); } + @Override + public GetPeerDatabaseMetricsResponse getPeerDatabaseMetrics( + GetPeerDatabaseMetricsRequest request) { + LOG.trace("Called getPeerDatabaseMetrics"); + final GetPeerDatabaseMetricsRequest interceptedRequest = + GetPeerDatabaseMetricsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetPeerDatabaseMetricsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbManagement", + "GetPeerDatabaseMetrics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/PeerDatabaseMetrics/GetPeerDatabaseMetrics"); + java.util.function.Function + transformer = + GetPeerDatabaseMetricsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetPreferredCredentialResponse getPreferredCredential( GetPreferredCredentialRequest request) { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetDataguardPerformanceMetricsConverter.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetDataguardPerformanceMetricsConverter.java new file mode 100644 index 0000000000..24b413d509 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetDataguardPerformanceMetricsConverter.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasemanagement.model.*; +import com.oracle.bmc.databasemanagement.requests.*; +import com.oracle.bmc.databasemanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDataguardPerformanceMetricsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetDataguardPerformanceMetricsConverter.class); + + public static com.oracle.bmc.databasemanagement.requests.GetDataguardPerformanceMetricsRequest + interceptRequest( + com.oracle.bmc.databasemanagement.requests.GetDataguardPerformanceMetricsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasemanagement.requests.GetDataguardPerformanceMetricsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedDatabaseId(), "managedDatabaseId must not be blank"); + Validate.notNull(request.getStartTime(), "startTime is required"); + Validate.notNull(request.getEndTime(), "endTime is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201101") + .path("managedDatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedDatabaseId())) + .path("dataguardPerformanceMetrics"); + + target = + target.queryParam( + "startTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStartTime())); + + target = + target.queryParam( + "endTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEndTime())); + + if (request.getPeerDatabaseCompartmentId() != null) { + target = + target.queryParam( + "peerDatabaseCompartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPeerDatabaseCompartmentId())); + } + + if (request.getFilterByMetricNames() != null) { + target = + target.queryParam( + "filterByMetricNames", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFilterByMetricNames())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse>() { + @Override + public com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasemanagement.responses.GetDataguardPerformanceMetricsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemanagement.model + .DataguardPerformanceMetrics>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemanagement.model + .DataguardPerformanceMetrics + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemanagement.model + .DataguardPerformanceMetrics + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemanagement.model + .DataguardPerformanceMetrics> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse.Builder + builder = + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dataguardPerformanceMetrics(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasemanagement.responses + .GetDataguardPerformanceMetricsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetPeerDatabaseMetricsConverter.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetPeerDatabaseMetricsConverter.java new file mode 100644 index 0000000000..f40476d997 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/internal/http/GetPeerDatabaseMetricsConverter.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasemanagement.model.*; +import com.oracle.bmc.databasemanagement.requests.*; +import com.oracle.bmc.databasemanagement.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetPeerDatabaseMetricsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetPeerDatabaseMetricsConverter.class); + + public static com.oracle.bmc.databasemanagement.requests.GetPeerDatabaseMetricsRequest + interceptRequest( + com.oracle.bmc.databasemanagement.requests.GetPeerDatabaseMetricsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasemanagement.requests.GetPeerDatabaseMetricsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getManagedDatabaseId(), "managedDatabaseId must not be blank"); + Validate.notNull(request.getStartTime(), "startTime is required"); + Validate.notNull(request.getEndTime(), "endTime is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20201101") + .path("managedDatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getManagedDatabaseId())) + .path("peerDatabaseMetrics"); + + target = + target.queryParam( + "startTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStartTime())); + + target = + target.queryParam( + "endTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEndTime())); + + if (request.getPeerDatabaseCompartmentId() != null) { + target = + target.queryParam( + "peerDatabaseCompartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPeerDatabaseCompartmentId())); + } + + if (request.getCompareType() != null) { + target = + target.queryParam( + "compareType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompareType().getValue())); + } + + if (request.getFilterByMetricNames() != null) { + target = + target.queryParam( + "filterByMetricNames", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFilterByMetricNames())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses.GetPeerDatabaseMetricsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses.GetPeerDatabaseMetricsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses.GetPeerDatabaseMetricsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemanagement.responses + .GetPeerDatabaseMetricsResponse>() { + @Override + public com.oracle.bmc.databasemanagement.responses + .GetPeerDatabaseMetricsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasemanagement.responses.GetPeerDatabaseMetricsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemanagement.model + .PeerDatabaseMetrics>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemanagement.model + .PeerDatabaseMetrics + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemanagement.model + .PeerDatabaseMetrics + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemanagement.model + .PeerDatabaseMetrics> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasemanagement.responses + .GetPeerDatabaseMetricsResponse.Builder + builder = + com.oracle.bmc.databasemanagement.responses + .GetPeerDatabaseMetricsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.peerDatabaseMetrics(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasemanagement.responses + .GetPeerDatabaseMetricsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataPoints.java similarity index 52% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java rename to bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataPoints.java index b0244bf4b5..bb603cc68f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataPoints.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.databasemanagement.model; /** - * Available ODMS Agent Images. - * + * The aggregated datapoints of the metric. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,64 +14,58 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AgentImageSummary.Builder.class -) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataPoints.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AgentImageSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class DataPoints extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"version", "downloadUrl"}) - public AgentImageSummary(String version, String downloadUrl) { + @java.beans.ConstructorProperties({"timestamp", "value"}) + public DataPoints(java.util.Date timestamp, Double value) { super(); - this.version = version; - this.downloadUrl = downloadUrl; + this.timestamp = timestamp; + this.value = value; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * ODMS Agent Image version. - * + * The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; /** - * ODMS Agent Image version. - * - * @param version the value to set + * The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * @param timestamp the value to set * @return this builder **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); return this; } /** - * URL to download Agent Image of the ODMS Agent. - * + * The value of the metric. **/ - @com.fasterxml.jackson.annotation.JsonProperty("downloadUrl") - private String downloadUrl; + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Double value; /** - * URL to download Agent Image of the ODMS Agent. - * - * @param downloadUrl the value to set + * The value of the metric. + * @param value the value to set * @return this builder **/ - public Builder downloadUrl(String downloadUrl) { - this.downloadUrl = downloadUrl; - this.__explicitlySet__.add("downloadUrl"); + public Builder value(Double 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 AgentImageSummary build() { - AgentImageSummary model = new AgentImageSummary(this.version, this.downloadUrl); + public DataPoints build() { + DataPoints model = new DataPoints(this.timestamp, this.value); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,12 +73,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(DataPoints model) { + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); } - if (model.wasPropertyExplicitlySet("downloadUrl")) { - this.downloadUrl(model.getDownloadUrl()); + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); } return this; } @@ -103,35 +96,31 @@ public Builder toBuilder() { } /** - * ODMS Agent Image version. - * + * The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; /** - * ODMS Agent Image version. - * + * The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". * @return the value **/ - public String getVersion() { - return version; + public java.util.Date getTimestamp() { + return timestamp; } /** - * URL to download Agent Image of the ODMS Agent. - * + * The value of the metric. **/ - @com.fasterxml.jackson.annotation.JsonProperty("downloadUrl") - private final String downloadUrl; + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Double value; /** - * URL to download Agent Image of the ODMS Agent. - * + * The value of the metric. * @return the value **/ - public String getDownloadUrl() { - return downloadUrl; + public Double getValue() { + return value; } @Override @@ -146,10 +135,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentImageSummary("); + sb.append("DataPoints("); sb.append("super=").append(super.toString()); - sb.append("version=").append(String.valueOf(this.version)); - sb.append(", downloadUrl=").append(String.valueOf(this.downloadUrl)); + sb.append("timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", value=").append(String.valueOf(this.value)); sb.append(")"); return sb.toString(); } @@ -159,13 +148,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentImageSummary)) { + if (!(o instanceof DataPoints)) { return false; } - AgentImageSummary other = (AgentImageSummary) o; - return java.util.Objects.equals(this.version, other.version) - && java.util.Objects.equals(this.downloadUrl, other.downloadUrl) + DataPoints other = (DataPoints) o; + return java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.value, other.value) && super.equals(other); } @@ -173,8 +162,8 @@ 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.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentialsByDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentialsByDetails.java index 7687a54a76..0ca260d85a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentialsByDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentialsByDetails.java @@ -232,6 +232,7 @@ public String getPasswordSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java index 9aef20141c..775a2659af 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java @@ -156,6 +156,7 @@ public String getUsername() { public enum Role { Normal("NORMAL"), Sysdba("SYSDBA"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java index a71467fd64..a5fe7775ff 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java @@ -166,6 +166,7 @@ public String getUsername() { public enum Role { Normal("NORMAL"), Sysdba("SYSDBA"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSslConnectionCredentials.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSslConnectionCredentials.java index 89c4f98bcc..3bc8344225 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSslConnectionCredentials.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSslConnectionCredentials.java @@ -261,6 +261,7 @@ public String getPasswordSecretId() { public enum Role { Sysdba("SYSDBA"), Normal("NORMAL"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseUsageMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseUsageMetrics.java index f74cebf468..26ecd8ac2f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseUsageMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseUsageMetrics.java @@ -31,6 +31,11 @@ public final class DatabaseUsageMetrics extends com.oracle.bmc.http.internal.Exp "workloadType", "databaseName", "databaseContainerId", + "databaseId", + "primaryDbId", + "primaryDbUniqueName", + "dbUniqueName", + "dbRole", "metrics" }) public DatabaseUsageMetrics( @@ -43,6 +48,11 @@ public DatabaseUsageMetrics( WorkloadType workloadType, String databaseName, String databaseContainerId, + String databaseId, + String primaryDbId, + String primaryDbUniqueName, + String dbUniqueName, + DbRole dbRole, java.util.List metrics) { super(); this.dbId = dbId; @@ -54,6 +64,11 @@ public DatabaseUsageMetrics( this.workloadType = workloadType; this.databaseName = databaseName; this.databaseContainerId = databaseContainerId; + this.databaseId = databaseId; + this.primaryDbId = primaryDbId; + this.primaryDbUniqueName = primaryDbUniqueName; + this.dbUniqueName = dbUniqueName; + this.dbRole = dbRole; this.metrics = metrics; } @@ -207,6 +222,86 @@ public Builder databaseContainerId(String databaseContainerId) { this.__explicitlySet__.add("databaseContainerId"); return this; } + /** + * The Database id of the Managed Database. Every database had its own id and that value is captured here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The Database id of the Managed Database. Every database had its own id and that value is captured here. + * @param databaseId the value to set + * @return this builder + **/ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** + * The Primary Database id of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbId") + private String primaryDbId; + + /** + * The Primary Database id of the Managed Database. + * @param primaryDbId the value to set + * @return this builder + **/ + public Builder primaryDbId(String primaryDbId) { + this.primaryDbId = primaryDbId; + this.__explicitlySet__.add("primaryDbId"); + return this; + } + /** + * The Primary Database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbUniqueName") + private String primaryDbUniqueName; + + /** + * The Primary Database unique name of the Managed Database. + * @param primaryDbUniqueName the value to set + * @return this builder + **/ + public Builder primaryDbUniqueName(String primaryDbUniqueName) { + this.primaryDbUniqueName = primaryDbUniqueName; + this.__explicitlySet__.add("primaryDbUniqueName"); + return this; + } + /** + * The Database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The Database unique name of the Managed Database. + * @param dbUniqueName the value to set + * @return this builder + **/ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** + * The Database role of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The Database role of the Managed Database. + * @param dbRole the value to set + * @return this builder + **/ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } /** * A list of the database health metrics like CPU, Storage, and Memory. **/ @@ -239,6 +334,11 @@ public DatabaseUsageMetrics build() { this.workloadType, this.databaseName, this.databaseContainerId, + this.databaseId, + this.primaryDbId, + this.primaryDbUniqueName, + this.dbUniqueName, + this.dbRole, this.metrics); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -275,6 +375,21 @@ public Builder copy(DatabaseUsageMetrics model) { if (model.wasPropertyExplicitlySet("databaseContainerId")) { this.databaseContainerId(model.getDatabaseContainerId()); } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("primaryDbId")) { + this.primaryDbId(model.getPrimaryDbId()); + } + if (model.wasPropertyExplicitlySet("primaryDbUniqueName")) { + this.primaryDbUniqueName(model.getPrimaryDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } @@ -423,6 +538,76 @@ public String getDatabaseContainerId() { return databaseContainerId; } + /** + * The Database id of the Managed Database. Every database had its own id and that value is captured here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The Database id of the Managed Database. Every database had its own id and that value is captured here. + * @return the value + **/ + public String getDatabaseId() { + return databaseId; + } + + /** + * The Primary Database id of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbId") + private final String primaryDbId; + + /** + * The Primary Database id of the Managed Database. + * @return the value + **/ + public String getPrimaryDbId() { + return primaryDbId; + } + + /** + * The Primary Database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbUniqueName") + private final String primaryDbUniqueName; + + /** + * The Primary Database unique name of the Managed Database. + * @return the value + **/ + public String getPrimaryDbUniqueName() { + return primaryDbUniqueName; + } + + /** + * The Database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The Database unique name of the Managed Database. + * @return the value + **/ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** + * The Database role of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The Database role of the Managed Database. + * @return the value + **/ + public DbRole getDbRole() { + return dbRole; + } + /** * A list of the database health metrics like CPU, Storage, and Memory. **/ @@ -460,6 +645,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", workloadType=").append(String.valueOf(this.workloadType)); sb.append(", databaseName=").append(String.valueOf(this.databaseName)); sb.append(", databaseContainerId=").append(String.valueOf(this.databaseContainerId)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", primaryDbId=").append(String.valueOf(this.primaryDbId)); + sb.append(", primaryDbUniqueName=").append(String.valueOf(this.primaryDbUniqueName)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); sb.append(", metrics=").append(String.valueOf(this.metrics)); sb.append(")"); return sb.toString(); @@ -484,6 +674,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.workloadType, other.workloadType) && java.util.Objects.equals(this.databaseName, other.databaseName) && java.util.Objects.equals(this.databaseContainerId, other.databaseContainerId) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.primaryDbId, other.primaryDbId) + && java.util.Objects.equals(this.primaryDbUniqueName, other.primaryDbUniqueName) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.dbRole, other.dbRole) && java.util.Objects.equals(this.metrics, other.metrics) && super.equals(other); } @@ -513,6 +708,15 @@ public int hashCode() { + (this.databaseContainerId == null ? 43 : this.databaseContainerId.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.primaryDbId == null ? 43 : this.primaryDbId.hashCode()); + result = + (result * PRIME) + + (this.primaryDbUniqueName == null + ? 43 + : this.primaryDbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardPerformanceMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardPerformanceMetrics.java new file mode 100644 index 0000000000..74ee4eddcb --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DataguardPerformanceMetrics.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * A summary of Data Guard performance metrics for Managed Databases. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataguardPerformanceMetrics.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DataguardPerformanceMetrics + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"metricsData"}) + public DataguardPerformanceMetrics(java.util.List metricsData) { + super(); + this.metricsData = metricsData; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A summary of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate, for Managed Databases. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricsData") + private java.util.List metricsData; + + /** + * A summary of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate, for Managed Databases. + * @param metricsData the value to set + * @return this builder + **/ + public Builder metricsData(java.util.List metricsData) { + this.metricsData = metricsData; + this.__explicitlySet__.add("metricsData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataguardPerformanceMetrics build() { + DataguardPerformanceMetrics model = new DataguardPerformanceMetrics(this.metricsData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataguardPerformanceMetrics model) { + if (model.wasPropertyExplicitlySet("metricsData")) { + this.metricsData(model.getMetricsData()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A summary of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate, for Managed Databases. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricsData") + private final java.util.List metricsData; + + /** + * A summary of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate, for Managed Databases. + * @return the value + **/ + public java.util.List getMetricsData() { + return metricsData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataguardPerformanceMetrics("); + sb.append("super=").append(super.toString()); + sb.append("metricsData=").append(String.valueOf(this.metricsData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataguardPerformanceMetrics)) { + return false; + } + + DataguardPerformanceMetrics other = (DataguardPerformanceMetrics) o; + return java.util.Objects.equals(this.metricsData, other.metricsData) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.metricsData == null ? 43 : this.metricsData.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbRole.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbRole.java new file mode 100644 index 0000000000..d52c8ffb5b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbRole.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The Database role of the Managed Database. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum DbRole { + SnapshotStandby("SNAPSHOT_STANDBY"), + LogicalStandby("LOGICAL_STANDBY"), + PhysicalStandby("PHYSICAL_STANDBY"), + Primary("PRIMARY"), + FarSync("FAR_SYNC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(DbRole.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbRole v : DbRole.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbRole(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbRole create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn("Received unknown value '{}' for enum 'DbRole', returning UnknownEnumValue", key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PeerDatabaseMetrics.java similarity index 56% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java rename to bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PeerDatabaseMetrics.java index 05384c6030..82ef909011 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PeerDatabaseMetrics.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.databasemanagement.model; /** - * Details about Oracle GoldenGate Microservices. - * + * The summary of resource usage metrics for the peer database. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,46 +14,43 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = GoldenGateDetails.Builder.class + builder = PeerDatabaseMetrics.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class GoldenGateDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class PeerDatabaseMetrics extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"hub", "settings"}) - public GoldenGateDetails(GoldenGateHub hub, GoldenGateSettings settings) { + @java.beans.ConstructorProperties({"peerDbMetrics"}) + public PeerDatabaseMetrics(java.util.List peerDbMetrics) { super(); - this.hub = hub; - this.settings = settings; + this.peerDbMetrics = peerDbMetrics; } @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"); + /** + * A list of resource usage metrics for the peer database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peerDbMetrics") + private java.util.List peerDbMetrics; + + /** + * A list of resource usage metrics for the peer database. + * @param peerDbMetrics the value to set + * @return this builder + **/ + public Builder peerDbMetrics(java.util.List peerDbMetrics) { + this.peerDbMetrics = peerDbMetrics; + this.__explicitlySet__.add("peerDbMetrics"); 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); + public PeerDatabaseMetrics build() { + PeerDatabaseMetrics model = new PeerDatabaseMetrics(this.peerDbMetrics); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -62,12 +58,9 @@ public GoldenGateDetails build() { } @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()); + public Builder copy(PeerDatabaseMetrics model) { + if (model.wasPropertyExplicitlySet("peerDbMetrics")) { + this.peerDbMetrics(model.getPeerDbMetrics()); } return this; } @@ -84,18 +77,18 @@ 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; + /** + * A list of resource usage metrics for the peer database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("peerDbMetrics") + private final java.util.List peerDbMetrics; - public GoldenGateSettings getSettings() { - return settings; + /** + * A list of resource usage metrics for the peer database. + * @return the value + **/ + public java.util.List getPeerDbMetrics() { + return peerDbMetrics; } @Override @@ -110,10 +103,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateDetails("); + sb.append("PeerDatabaseMetrics("); sb.append("super=").append(super.toString()); - sb.append("hub=").append(String.valueOf(this.hub)); - sb.append(", settings=").append(String.valueOf(this.settings)); + sb.append("peerDbMetrics=").append(String.valueOf(this.peerDbMetrics)); sb.append(")"); return sb.toString(); } @@ -123,13 +115,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GoldenGateDetails)) { + if (!(o instanceof PeerDatabaseMetrics)) { return false; } - GoldenGateDetails other = (GoldenGateDetails) o; - return java.util.Objects.equals(this.hub, other.hub) - && java.util.Objects.equals(this.settings, other.settings) + PeerDatabaseMetrics other = (PeerDatabaseMetrics) o; + return java.util.Objects.equals(this.peerDbMetrics, other.peerDbMetrics) && super.equals(other); } @@ -137,8 +128,9 @@ public boolean equals(Object o) { 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) + + (this.peerDbMetrics == null ? 43 : this.peerDbMetrics.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetrics.java new file mode 100644 index 0000000000..c4c6cd00c6 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetrics.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The Data Guard performance metric details. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PerformanceMetrics.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PerformanceMetrics extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "dimensions", "metadata", "datapoints"}) + public PerformanceMetrics( + String name, + Object dimensions, + Object metadata, + java.util.List datapoints) { + super(); + this.name = name; + this.dimensions = dimensions; + this.metadata = metadata; + this.datapoints = datapoints; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the metric. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The dimensions of the Data Guard performance metrics, such as primary database ID, primary database unique name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private Object dimensions; + + /** + * The dimensions of the Data Guard performance metrics, such as primary database ID, primary database unique name. + * @param dimensions the value to set + * @return this builder + **/ + public Builder dimensions(Object dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** + * The metadata of the metric, such as Unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private Object metadata; + + /** + * The metadata of the metric, such as Unit. + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(Object metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The aggregated datapoints of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("datapoints") + private java.util.List datapoints; + + /** + * The aggregated datapoints of the metric. + * @param datapoints the value to set + * @return this builder + **/ + public Builder datapoints(java.util.List datapoints) { + this.datapoints = datapoints; + this.__explicitlySet__.add("datapoints"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PerformanceMetrics build() { + PerformanceMetrics model = + new PerformanceMetrics( + this.name, this.dimensions, this.metadata, this.datapoints); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PerformanceMetrics model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("datapoints")) { + this.datapoints(model.getDatapoints()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the metric. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The dimensions of the Data Guard performance metrics, such as primary database ID, primary database unique name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final Object dimensions; + + /** + * The dimensions of the Data Guard performance metrics, such as primary database ID, primary database unique name. + * @return the value + **/ + public Object getDimensions() { + return dimensions; + } + + /** + * The metadata of the metric, such as Unit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final Object metadata; + + /** + * The metadata of the metric, such as Unit. + * @return the value + **/ + public Object getMetadata() { + return metadata; + } + + /** + * The aggregated datapoints of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("datapoints") + private final java.util.List datapoints; + + /** + * The aggregated datapoints of the metric. + * @return the value + **/ + public java.util.List getDatapoints() { + return datapoints; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PerformanceMetrics("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", datapoints=").append(String.valueOf(this.datapoints)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PerformanceMetrics)) { + return false; + } + + PerformanceMetrics other = (PerformanceMetrics) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.datapoints, other.datapoints) + && 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.dimensions == null ? 43 : this.dimensions.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.datapoints == null ? 43 : this.datapoints.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetricsData.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetricsData.java new file mode 100644 index 0000000000..811b54a04d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PerformanceMetricsData.java @@ -0,0 +1,509 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The list of Data Guard performance metrics for Managed Databases. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PerformanceMetricsData.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PerformanceMetricsData + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "resourceId", + "primaryDbId", + "primaryDbUniqueName", + "databaseId", + "dbUniqueName", + "deploymentType", + "resourceName", + "dbRole", + "metrics" + }) + public PerformanceMetricsData( + String compartmentId, + String resourceId, + String primaryDbId, + String primaryDbUniqueName, + String databaseId, + String dbUniqueName, + String deploymentType, + String resourceName, + DbRole dbRole, + java.util.List metrics) { + super(); + this.compartmentId = compartmentId; + this.resourceId = resourceId; + this.primaryDbId = primaryDbId; + this.primaryDbUniqueName = primaryDbUniqueName; + this.databaseId = databaseId; + this.dbUniqueName = dbUniqueName; + this.deploymentType = deploymentType; + this.resourceName = resourceName; + this.dbRole = dbRole; + this.metrics = metrics; + } + + @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 in which the Managed Database resides. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which the Managed Database resides. + * @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 Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + * @param resourceId the value to set + * @return this builder + **/ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * The ID of the primary database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbId") + private String primaryDbId; + + /** + * The ID of the primary database. + * @param primaryDbId the value to set + * @return this builder + **/ + public Builder primaryDbId(String primaryDbId) { + this.primaryDbId = primaryDbId; + this.__explicitlySet__.add("primaryDbId"); + return this; + } + /** + * The primary database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbUniqueName") + private String primaryDbUniqueName; + + /** + * The primary database unique name of the Managed Database. + * @param primaryDbUniqueName the value to set + * @return this builder + **/ + public Builder primaryDbUniqueName(String primaryDbUniqueName) { + this.primaryDbUniqueName = primaryDbUniqueName; + this.__explicitlySet__.add("primaryDbUniqueName"); + return this; + } + /** + * The database ID of the Managed Database. Every database had its own ID and that value is captured here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is captured here. + * @param databaseId the value to set + * @return this builder + **/ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** + * The database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * @param dbUniqueName the value to set + * @return this builder + **/ + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + /** + * The deployment type of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private String deploymentType; + + /** + * The deployment type of the Managed Database. + * @param deploymentType the value to set + * @return this builder + **/ + public Builder deploymentType(String deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** + * The resource name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The resource name of the Managed Database. + * @param resourceName the value to set + * @return this builder + **/ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** + * The database role of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private DbRole dbRole; + + /** + * The database role of the Managed Database. + * @param dbRole the value to set + * @return this builder + **/ + public Builder dbRole(DbRole dbRole) { + this.dbRole = dbRole; + this.__explicitlySet__.add("dbRole"); + return this; + } + /** + * The list of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate for the Managed Databases. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private java.util.List metrics; + + /** + * The list of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate for the Managed Databases. + * @param metrics the value to set + * @return this builder + **/ + public Builder metrics(java.util.List metrics) { + this.metrics = metrics; + this.__explicitlySet__.add("metrics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PerformanceMetricsData build() { + PerformanceMetricsData model = + new PerformanceMetricsData( + this.compartmentId, + this.resourceId, + this.primaryDbId, + this.primaryDbUniqueName, + this.databaseId, + this.dbUniqueName, + this.deploymentType, + this.resourceName, + this.dbRole, + this.metrics); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PerformanceMetricsData model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("primaryDbId")) { + this.primaryDbId(model.getPrimaryDbId()); + } + if (model.wasPropertyExplicitlySet("primaryDbUniqueName")) { + this.primaryDbUniqueName(model.getPrimaryDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("dbRole")) { + this.dbRole(model.getDbRole()); + } + if (model.wasPropertyExplicitlySet("metrics")) { + this.metrics(model.getMetrics()); + } + 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 in which the Managed Database resides. + **/ + @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 in which the Managed Database resides. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + * @return the value + **/ + public String getResourceId() { + return resourceId; + } + + /** + * The ID of the primary database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbId") + private final String primaryDbId; + + /** + * The ID of the primary database. + * @return the value + **/ + public String getPrimaryDbId() { + return primaryDbId; + } + + /** + * The primary database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbUniqueName") + private final String primaryDbUniqueName; + + /** + * The primary database unique name of the Managed Database. + * @return the value + **/ + public String getPrimaryDbUniqueName() { + return primaryDbUniqueName; + } + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is captured here. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The database ID of the Managed Database. Every database had its own ID and that value is captured here. + * @return the value + **/ + public String getDatabaseId() { + return databaseId; + } + + /** + * The database unique name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private final String dbUniqueName; + + /** + * The database unique name of the Managed Database. + * @return the value + **/ + public String getDbUniqueName() { + return dbUniqueName; + } + + /** + * The deployment type of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final String deploymentType; + + /** + * The deployment type of the Managed Database. + * @return the value + **/ + public String getDeploymentType() { + return deploymentType; + } + + /** + * The resource name of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The resource name of the Managed Database. + * @return the value + **/ + public String getResourceName() { + return resourceName; + } + + /** + * The database role of the Managed Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbRole") + private final DbRole dbRole; + + /** + * The database role of the Managed Database. + * @return the value + **/ + public DbRole getDbRole() { + return dbRole; + } + + /** + * The list of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate for the Managed Databases. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metrics") + private final java.util.List metrics; + + /** + * The list of Data Guard performance metrics such as ApplyLag, TransportLag and RedoApplyRate for the Managed Databases. + * @return the value + **/ + public java.util.List getMetrics() { + return metrics; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PerformanceMetricsData("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", primaryDbId=").append(String.valueOf(this.primaryDbId)); + sb.append(", primaryDbUniqueName=").append(String.valueOf(this.primaryDbUniqueName)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", dbUniqueName=").append(String.valueOf(this.dbUniqueName)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", dbRole=").append(String.valueOf(this.dbRole)); + sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PerformanceMetricsData)) { + return false; + } + + PerformanceMetricsData other = (PerformanceMetricsData) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.primaryDbId, other.primaryDbId) + && java.util.Objects.equals(this.primaryDbUniqueName, other.primaryDbUniqueName) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.dbUniqueName, other.dbUniqueName) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.dbRole, other.dbRole) + && java.util.Objects.equals(this.metrics, other.metrics) + && 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.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.primaryDbId == null ? 43 : this.primaryDbId.hashCode()); + result = + (result * PRIME) + + (this.primaryDbUniqueName == null + ? 43 + : this.primaryDbUniqueName.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.dbUniqueName == null ? 43 : this.dbUniqueName.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.dbRole == null ? 43 : this.dbRole.hashCode()); + result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/Role.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/Role.java index d4f1f471e0..19ce142e45 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/Role.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/Role.java @@ -11,6 +11,7 @@ public enum Role { Normal("NORMAL"), Sysdba("SYSDBA"), + Sysdg("SYSDG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDataguardPerformanceMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDataguardPerformanceMetricsRequest.java new file mode 100644 index 0000000000..736b978721 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetDataguardPerformanceMetricsRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use GetDataguardPerformanceMetricsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDataguardPerformanceMetricsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + private String managedDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + public String getManagedDatabaseId() { + return managedDatabaseId; + } + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String startTime; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + public String getStartTime() { + return startTime; + } + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String endTime; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + public String getEndTime() { + return endTime; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + private String peerDatabaseCompartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + public String getPeerDatabaseCompartmentId() { + return peerDatabaseCompartmentId; + } + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + public String getFilterByMetricNames() { + return filterByMetricNames; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDataguardPerformanceMetricsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + private String managedDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + * @param managedDatabaseId the value to set + * @return this builder instance + */ + public Builder managedDatabaseId(String managedDatabaseId) { + this.managedDatabaseId = managedDatabaseId; + return this; + } + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String startTime = null; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param startTime the value to set + * @return this builder instance + */ + public Builder startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String endTime = null; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param endTime the value to set + * @return this builder instance + */ + public Builder endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + private String peerDatabaseCompartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + * @param peerDatabaseCompartmentId the value to set + * @return this builder instance + */ + public Builder peerDatabaseCompartmentId(String peerDatabaseCompartmentId) { + this.peerDatabaseCompartmentId = peerDatabaseCompartmentId; + return this; + } + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames = null; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + * @param filterByMetricNames the value to set + * @return this builder instance + */ + public Builder filterByMetricNames(String filterByMetricNames) { + this.filterByMetricNames = filterByMetricNames; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataguardPerformanceMetricsRequest o) { + managedDatabaseId(o.getManagedDatabaseId()); + startTime(o.getStartTime()); + endTime(o.getEndTime()); + opcRequestId(o.getOpcRequestId()); + peerDatabaseCompartmentId(o.getPeerDatabaseCompartmentId()); + filterByMetricNames(o.getFilterByMetricNames()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataguardPerformanceMetricsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetDataguardPerformanceMetricsRequest + */ + public GetDataguardPerformanceMetricsRequest build() { + GetDataguardPerformanceMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDataguardPerformanceMetricsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetDataguardPerformanceMetricsRequest + */ + public GetDataguardPerformanceMetricsRequest buildWithoutInvocationCallback() { + GetDataguardPerformanceMetricsRequest request = + new GetDataguardPerformanceMetricsRequest(); + request.managedDatabaseId = managedDatabaseId; + request.startTime = startTime; + request.endTime = endTime; + request.opcRequestId = opcRequestId; + request.peerDatabaseCompartmentId = peerDatabaseCompartmentId; + request.filterByMetricNames = filterByMetricNames; + return request; + // new GetDataguardPerformanceMetricsRequest(managedDatabaseId, startTime, endTime, opcRequestId, peerDatabaseCompartmentId, filterByMetricNames); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedDatabaseId(managedDatabaseId) + .startTime(startTime) + .endTime(endTime) + .opcRequestId(opcRequestId) + .peerDatabaseCompartmentId(peerDatabaseCompartmentId) + .filterByMetricNames(filterByMetricNames); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); + sb.append(",startTime=").append(String.valueOf(this.startTime)); + sb.append(",endTime=").append(String.valueOf(this.endTime)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",peerDatabaseCompartmentId=") + .append(String.valueOf(this.peerDatabaseCompartmentId)); + sb.append(",filterByMetricNames=").append(String.valueOf(this.filterByMetricNames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataguardPerformanceMetricsRequest)) { + return false; + } + + GetDataguardPerformanceMetricsRequest other = (GetDataguardPerformanceMetricsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) + && java.util.Objects.equals(this.startTime, other.startTime) + && java.util.Objects.equals(this.endTime, other.endTime) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.peerDatabaseCompartmentId, other.peerDatabaseCompartmentId) + && java.util.Objects.equals(this.filterByMetricNames, other.filterByMetricNames); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); + result = (result * PRIME) + (this.startTime == null ? 43 : this.startTime.hashCode()); + result = (result * PRIME) + (this.endTime == null ? 43 : this.endTime.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.peerDatabaseCompartmentId == null + ? 43 + : this.peerDatabaseCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.filterByMetricNames == null + ? 43 + : this.filterByMetricNames.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPeerDatabaseMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPeerDatabaseMetricsRequest.java new file mode 100644 index 0000000000..e83f61dada --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetPeerDatabaseMetricsRequest.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use GetPeerDatabaseMetricsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetPeerDatabaseMetricsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + private String managedDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + public String getManagedDatabaseId() { + return managedDatabaseId; + } + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String startTime; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + public String getStartTime() { + return startTime; + } + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String endTime; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + public String getEndTime() { + return endTime; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + private String peerDatabaseCompartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + public String getPeerDatabaseCompartmentId() { + return peerDatabaseCompartmentId; + } + /** + * The time window used for metrics comparison. + */ + private com.oracle.bmc.databasemanagement.model.CompareType compareType; + + /** + * The time window used for metrics comparison. + */ + public com.oracle.bmc.databasemanagement.model.CompareType getCompareType() { + return compareType; + } + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + public String getFilterByMetricNames() { + return filterByMetricNames; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetPeerDatabaseMetricsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + */ + private String managedDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + * @param managedDatabaseId the value to set + * @return this builder instance + */ + public Builder managedDatabaseId(String managedDatabaseId) { + this.managedDatabaseId = managedDatabaseId; + return this; + } + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String startTime = null; + + /** + * The start time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param startTime the value to set + * @return this builder instance + */ + public Builder startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + */ + private String endTime = null; + + /** + * The end time of the time range to retrieve the health metrics of a Managed Database + * in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". + * + * @param endTime the value to set + * @return this builder instance + */ + public Builder endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + */ + private String peerDatabaseCompartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which peer database metrics are required. + * This is not a mandatory parameter and in its absence, all the peer database metrics are returned. + * + * @param peerDatabaseCompartmentId the value to set + * @return this builder instance + */ + public Builder peerDatabaseCompartmentId(String peerDatabaseCompartmentId) { + this.peerDatabaseCompartmentId = peerDatabaseCompartmentId; + return this; + } + + /** + * The time window used for metrics comparison. + */ + private com.oracle.bmc.databasemanagement.model.CompareType compareType = null; + + /** + * The time window used for metrics comparison. + * @param compareType the value to set + * @return this builder instance + */ + public Builder compareType( + com.oracle.bmc.databasemanagement.model.CompareType compareType) { + this.compareType = compareType; + return this; + } + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + */ + private String filterByMetricNames = null; + + /** + * The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics. + * @param filterByMetricNames the value to set + * @return this builder instance + */ + public Builder filterByMetricNames(String filterByMetricNames) { + this.filterByMetricNames = filterByMetricNames; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetPeerDatabaseMetricsRequest o) { + managedDatabaseId(o.getManagedDatabaseId()); + startTime(o.getStartTime()); + endTime(o.getEndTime()); + opcRequestId(o.getOpcRequestId()); + peerDatabaseCompartmentId(o.getPeerDatabaseCompartmentId()); + compareType(o.getCompareType()); + filterByMetricNames(o.getFilterByMetricNames()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPeerDatabaseMetricsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetPeerDatabaseMetricsRequest + */ + public GetPeerDatabaseMetricsRequest build() { + GetPeerDatabaseMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPeerDatabaseMetricsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetPeerDatabaseMetricsRequest + */ + public GetPeerDatabaseMetricsRequest buildWithoutInvocationCallback() { + GetPeerDatabaseMetricsRequest request = new GetPeerDatabaseMetricsRequest(); + request.managedDatabaseId = managedDatabaseId; + request.startTime = startTime; + request.endTime = endTime; + request.opcRequestId = opcRequestId; + request.peerDatabaseCompartmentId = peerDatabaseCompartmentId; + request.compareType = compareType; + request.filterByMetricNames = filterByMetricNames; + return request; + // new GetPeerDatabaseMetricsRequest(managedDatabaseId, startTime, endTime, opcRequestId, peerDatabaseCompartmentId, compareType, filterByMetricNames); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .managedDatabaseId(managedDatabaseId) + .startTime(startTime) + .endTime(endTime) + .opcRequestId(opcRequestId) + .peerDatabaseCompartmentId(peerDatabaseCompartmentId) + .compareType(compareType) + .filterByMetricNames(filterByMetricNames); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); + sb.append(",startTime=").append(String.valueOf(this.startTime)); + sb.append(",endTime=").append(String.valueOf(this.endTime)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",peerDatabaseCompartmentId=") + .append(String.valueOf(this.peerDatabaseCompartmentId)); + sb.append(",compareType=").append(String.valueOf(this.compareType)); + sb.append(",filterByMetricNames=").append(String.valueOf(this.filterByMetricNames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPeerDatabaseMetricsRequest)) { + return false; + } + + GetPeerDatabaseMetricsRequest other = (GetPeerDatabaseMetricsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) + && java.util.Objects.equals(this.startTime, other.startTime) + && java.util.Objects.equals(this.endTime, other.endTime) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.peerDatabaseCompartmentId, other.peerDatabaseCompartmentId) + && java.util.Objects.equals(this.compareType, other.compareType) + && java.util.Objects.equals(this.filterByMetricNames, other.filterByMetricNames); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); + result = (result * PRIME) + (this.startTime == null ? 43 : this.startTime.hashCode()); + result = (result * PRIME) + (this.endTime == null ? 43 : this.endTime.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.peerDatabaseCompartmentId == null + ? 43 + : this.peerDatabaseCompartmentId.hashCode()); + result = (result * PRIME) + (this.compareType == null ? 43 : this.compareType.hashCode()); + result = + (result * PRIME) + + (this.filterByMetricNames == null + ? 43 + : this.filterByMetricNames.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDataguardPerformanceMetricsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDataguardPerformanceMetricsResponse.java new file mode 100644 index 0000000000..0221359a70 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetDataguardPerformanceMetricsResponse.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetDataguardPerformanceMetricsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DataguardPerformanceMetrics instance. + */ + private com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics + dataguardPerformanceMetrics; + + /** + * The returned DataguardPerformanceMetrics instance. + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics + getDataguardPerformanceMetrics() { + return dataguardPerformanceMetrics; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "dataguardPerformanceMetrics" + }) + private GetDataguardPerformanceMetricsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics + dataguardPerformanceMetrics) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.dataguardPerformanceMetrics = dataguardPerformanceMetrics; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DataguardPerformanceMetrics instance. + */ + private com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics + dataguardPerformanceMetrics; + + /** + * The returned DataguardPerformanceMetrics instance. + * @param dataguardPerformanceMetrics the value to set + * @return this builder + */ + public Builder dataguardPerformanceMetrics( + com.oracle.bmc.databasemanagement.model.DataguardPerformanceMetrics + dataguardPerformanceMetrics) { + this.dataguardPerformanceMetrics = dataguardPerformanceMetrics; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataguardPerformanceMetricsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + dataguardPerformanceMetrics(o.getDataguardPerformanceMetrics()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDataguardPerformanceMetricsResponse build() { + return new GetDataguardPerformanceMetricsResponse( + __httpStatusCode__, headers, opcRequestId, dataguardPerformanceMetrics); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",dataguardPerformanceMetrics=") + .append(String.valueOf(dataguardPerformanceMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataguardPerformanceMetricsResponse)) { + return false; + } + + GetDataguardPerformanceMetricsResponse other = (GetDataguardPerformanceMetricsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.dataguardPerformanceMetrics, other.dataguardPerformanceMetrics); + } + + @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.dataguardPerformanceMetrics == null + ? 43 + : this.dataguardPerformanceMetrics.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetPeerDatabaseMetricsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetPeerDatabaseMetricsResponse.java new file mode 100644 index 0000000000..308017f624 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetPeerDatabaseMetricsResponse.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetPeerDatabaseMetricsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned PeerDatabaseMetrics instance. + */ + private com.oracle.bmc.databasemanagement.model.PeerDatabaseMetrics peerDatabaseMetrics; + + /** + * The returned PeerDatabaseMetrics instance. + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.PeerDatabaseMetrics getPeerDatabaseMetrics() { + return peerDatabaseMetrics; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "peerDatabaseMetrics" + }) + private GetPeerDatabaseMetricsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.databasemanagement.model.PeerDatabaseMetrics peerDatabaseMetrics) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.peerDatabaseMetrics = peerDatabaseMetrics; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned PeerDatabaseMetrics instance. + */ + private com.oracle.bmc.databasemanagement.model.PeerDatabaseMetrics peerDatabaseMetrics; + + /** + * The returned PeerDatabaseMetrics instance. + * @param peerDatabaseMetrics the value to set + * @return this builder + */ + public Builder peerDatabaseMetrics( + com.oracle.bmc.databasemanagement.model.PeerDatabaseMetrics peerDatabaseMetrics) { + this.peerDatabaseMetrics = peerDatabaseMetrics; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetPeerDatabaseMetricsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + peerDatabaseMetrics(o.getPeerDatabaseMetrics()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetPeerDatabaseMetricsResponse build() { + return new GetPeerDatabaseMetricsResponse( + __httpStatusCode__, headers, opcRequestId, peerDatabaseMetrics); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",peerDatabaseMetrics=").append(String.valueOf(peerDatabaseMetrics)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPeerDatabaseMetricsResponse)) { + return false; + } + + GetPeerDatabaseMetricsResponse other = (GetPeerDatabaseMetricsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.peerDatabaseMetrics, other.peerDatabaseMetrics); + } + + @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.peerDatabaseMetrics == null + ? 43 + : this.peerDatabaseMetrics.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 91d092937a..2e2f89127d 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-databasemigration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.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 c0e0542de8..a06597c880 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 @@ -11,7 +11,7 @@ * Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public interface DatabaseMigration extends AutoCloseable { /** @@ -85,19 +85,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. * @@ -181,19 +168,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. * @@ -259,19 +233,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. * @@ -337,32 +298,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. * @@ -547,19 +482,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 121e607fb5..e902b86d07 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 @@ -10,7 +10,7 @@ /** * Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public interface DatabaseMigrationAsync extends AutoCloseable { /** @@ -90,23 +90,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. * @@ -209,21 +192,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. * @@ -304,21 +272,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. * @@ -399,37 +352,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. * @@ -660,21 +582,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 0e992e6898..859332f373 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 @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationAsyncClient implements DatabaseMigrationAsync { /** * Service instance for DatabaseMigration. @@ -478,7 +478,7 @@ public java.util.concurrent.Future abortJob( "DatabaseMigration", "AbortJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob"); final java.util.function.Function transformer = AbortJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler handlerToUse = @@ -521,7 +521,7 @@ public java.util.concurrent.Future addMigrationObje "DatabaseMigration", "AddMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects"); final java.util.function.Function transformer = AddMigrationObjectsConverter.fromResponse( @@ -557,59 +557,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future changeAgentCompartment( - ChangeAgentCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse> - handler) { - LOG.trace("Called async changeAgentCompartment"); - final ChangeAgentCompartmentRequest interceptedRequest = - ChangeAgentCompartmentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeAgentCompartmentConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ChangeAgentCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment"); - final java.util.function.Function - transformer = - ChangeAgentCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getChangeAgentCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future changeConnectionCompartment( @@ -629,7 +576,7 @@ protected void beforeRetryAction() {} "DatabaseMigration", "ChangeConnectionCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeConnectionCompartmentResponse> transformer = @@ -686,7 +633,7 @@ protected void beforeRetryAction() {} "DatabaseMigration", "ChangeMigrationCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeMigrationCompartmentResponse> transformer = @@ -741,7 +688,7 @@ public java.util.concurrent.Future cloneMigration( "DatabaseMigration", "CloneMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration"); final java.util.function.Function transformer = CloneMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -792,7 +739,7 @@ public java.util.concurrent.Future connectionDiag "DatabaseMigration", "ConnectionDiagnostics", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics"); final java.util.function.Function transformer = ConnectionDiagnosticsConverter.fromResponse( @@ -886,7 +833,10 @@ public java.util.concurrent.Future createMigration( com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", "CreateMigration", ib.getRequestUri().toString(), ""); + "DatabaseMigration", + "CreateMigration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration"); final java.util.function.Function transformer = CreateMigrationConverter.fromResponse( @@ -921,50 +871,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future deleteAgent( - DeleteAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async deleteAgent"); - final DeleteAgentRequest interceptedRequest = - DeleteAgentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteAgentConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "DeleteAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent"); - final java.util.function.Function - transformer = - DeleteAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteAgentRequest, DeleteAgentResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteAgentRequest, DeleteAgentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future deleteConnection( DeleteConnectionRequest request, @@ -981,7 +887,7 @@ public java.util.concurrent.Future deleteConnection( "DatabaseMigration", "DeleteConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection"); final java.util.function.Function transformer = DeleteConnectionConverter.fromResponse( @@ -1025,7 +931,7 @@ public java.util.concurrent.Future deleteJob( "DatabaseMigration", "DeleteJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob"); final java.util.function.Function transformer = DeleteJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1069,7 +975,7 @@ public java.util.concurrent.Future deleteMigration( "DatabaseMigration", "DeleteMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration"); final java.util.function.Function transformer = DeleteMigrationConverter.fromResponse( @@ -1116,7 +1022,7 @@ public java.util.concurrent.Future evaluateMigration( "DatabaseMigration", "EvaluateMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration"); final java.util.function.Function transformer = EvaluateMigrationConverter.fromResponse( @@ -1162,7 +1068,7 @@ public java.util.concurrent.Future getAdvisorReport( "DatabaseMigration", "GetAdvisorReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport"); final java.util.function.Function transformer = GetAdvisorReportConverter.fromResponse( @@ -1192,47 +1098,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future getAgent( - GetAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async getAgent"); - final GetAgentRequest interceptedRequest = GetAgentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetAgentConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "GetAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent"); - final java.util.function.Function transformer = - GetAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler handlerToUse = - handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetAgentRequest, GetAgentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future getConnection( GetConnectionRequest request, @@ -1248,7 +1113,7 @@ public java.util.concurrent.Future getConnection( "DatabaseMigration", "GetConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection"); final java.util.function.Function transformer = GetConnectionConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1290,7 +1155,7 @@ public java.util.concurrent.Future getJob( "DatabaseMigration", "GetJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob"); final java.util.function.Function transformer = GetJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; @@ -1332,7 +1197,7 @@ public java.util.concurrent.Future getJobOutputCont "DatabaseMigration", "GetJobOutputContent", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent"); final java.util.function.Function transformer = GetJobOutputContentConverter.fromResponse( @@ -1378,7 +1243,7 @@ public java.util.concurrent.Future getMigration( "DatabaseMigration", "GetMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration"); final java.util.function.Function transformer = GetMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1423,7 +1288,7 @@ public java.util.concurrent.Future getWorkRequest( "DatabaseMigration", "GetWorkRequest", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1452,95 +1317,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future listAgentImages( - ListAgentImagesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListAgentImagesRequest, ListAgentImagesResponse> - handler) { - LOG.trace("Called async listAgentImages"); - final ListAgentImagesRequest interceptedRequest = - ListAgentImagesConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListAgentImagesConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ListAgentImages", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages"); - final java.util.function.Function - transformer = - ListAgentImagesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListAgentImagesRequest, ListAgentImagesResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListAgentImagesRequest, ListAgentImagesResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listAgents( - ListAgentsRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async listAgents"); - final ListAgentsRequest interceptedRequest = ListAgentsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListAgentsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ListAgents", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents"); - final java.util.function.Function - transformer = - ListAgentsConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler handlerToUse = - handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListAgentsRequest, ListAgentsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListAgentsRequest, ListAgentsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future listConnections( ListConnectionsRequest request, @@ -1557,7 +1333,7 @@ public java.util.concurrent.Future listConnections( "DatabaseMigration", "ListConnections", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections"); final java.util.function.Function transformer = ListConnectionsConverter.fromResponse( @@ -1603,7 +1379,7 @@ public java.util.concurrent.Future listExcludedObje "DatabaseMigration", "ListExcludedObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects"); final java.util.function.Function transformer = ListExcludedObjectsConverter.fromResponse( @@ -1650,7 +1426,7 @@ public java.util.concurrent.Future listJobOutputs( "DatabaseMigration", "ListJobOutputs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs"); final java.util.function.Function transformer = ListJobOutputsConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1693,7 +1469,7 @@ public java.util.concurrent.Future listJobs( "DatabaseMigration", "ListJobs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs"); final java.util.function.Function transformer = ListJobsConverter.fromResponse(java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler handlerToUse = @@ -1736,7 +1512,7 @@ public java.util.concurrent.Future listMigrati "DatabaseMigration", "ListMigrationObjectTypes", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes"); final java.util.function.Function< javax.ws.rs.core.Response, ListMigrationObjectTypesResponse> transformer = @@ -1784,7 +1560,7 @@ public java.util.concurrent.Future listMigrationOb "DatabaseMigration", "ListMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects"); final java.util.function.Function transformer = ListMigrationObjectsConverter.fromResponse( @@ -1831,7 +1607,7 @@ public java.util.concurrent.Future listMigrations( "DatabaseMigration", "ListMigrations", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations"); final java.util.function.Function transformer = ListMigrationsConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1876,7 +1652,7 @@ public java.util.concurrent.Future listWorkReques "DatabaseMigration", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1923,7 +1699,7 @@ public java.util.concurrent.Future listWorkRequestL "DatabaseMigration", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -1970,7 +1746,7 @@ public java.util.concurrent.Future listWorkRequests( "DatabaseMigration", "ListWorkRequests", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -2016,7 +1792,7 @@ public java.util.concurrent.Future removeMigrati "DatabaseMigration", "RemoveMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects"); final java.util.function.Function transformer = RemoveMigrationObjectsConverter.fromResponse( @@ -2067,7 +1843,7 @@ public java.util.concurrent.Future resumeJob( "DatabaseMigration", "ResumeJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob"); final java.util.function.Function transformer = ResumeJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -2116,7 +1892,7 @@ public java.util.concurrent.Future retrieveSupp "DatabaseMigration", "RetrieveSupportedPhases", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases"); final java.util.function.Function< javax.ws.rs.core.Response, RetrieveSupportedPhasesResponse> transformer = @@ -2165,7 +1941,7 @@ public java.util.concurrent.Future startMigration( "DatabaseMigration", "StartMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration"); final java.util.function.Function transformer = StartMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -2199,56 +1975,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future updateAgent( - UpdateAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async updateAgent"); - final UpdateAgentRequest interceptedRequest = - UpdateAgentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateAgentConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "UpdateAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent"); - final java.util.function.Function - transformer = - UpdateAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateAgentRequest, UpdateAgentResponse>, - java.util.concurrent.Future> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest.getUpdateAgentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateAgentRequest, UpdateAgentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future updateConnection( UpdateConnectionRequest request, @@ -2265,7 +1991,7 @@ public java.util.concurrent.Future updateConnection( "DatabaseMigration", "UpdateConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection"); final java.util.function.Function transformer = UpdateConnectionConverter.fromResponse( @@ -2314,7 +2040,7 @@ public java.util.concurrent.Future updateJob( "DatabaseMigration", "UpdateJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob"); final java.util.function.Function transformer = UpdateJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -2363,7 +2089,7 @@ public java.util.concurrent.Future updateMigration( "DatabaseMigration", "UpdateMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration"); final java.util.function.Function transformer = UpdateMigrationConverter.fromResponse( 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 4fd48d53cc..3e3a6e960d 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 @@ -10,7 +10,7 @@ import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; import com.oracle.bmc.util.CircuitBreakerUtils; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationClient implements DatabaseMigration { /** * Service instance for DatabaseMigration. @@ -569,7 +569,7 @@ public AbortJobResponse abortJob(AbortJobRequest request) { "DatabaseMigration", "AbortJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob"); java.util.function.Function transformer = AbortJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -605,7 +605,7 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques "DatabaseMigration", "AddMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects"); java.util.function.Function transformer = AddMigrationObjectsConverter.fromResponse( @@ -629,49 +629,6 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques }); } - @Override - public ChangeAgentCompartmentResponse changeAgentCompartment( - ChangeAgentCompartmentRequest request) { - LOG.trace("Called changeAgentCompartment"); - final ChangeAgentCompartmentRequest interceptedRequest = - ChangeAgentCompartmentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeAgentCompartmentConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ChangeAgentCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment"); - java.util.function.Function - transformer = - ChangeAgentCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest.getChangeAgentCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public ChangeConnectionCompartmentResponse changeConnectionCompartment( ChangeConnectionCompartmentRequest request) { @@ -691,7 +648,7 @@ public ChangeConnectionCompartmentResponse changeConnectionCompartment( "DatabaseMigration", "ChangeConnectionCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment"); java.util.function.Function transformer = ChangeConnectionCompartmentConverter.fromResponse( @@ -735,7 +692,7 @@ public ChangeMigrationCompartmentResponse changeMigrationCompartment( "DatabaseMigration", "ChangeMigrationCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment"); java.util.function.Function transformer = ChangeMigrationCompartmentConverter.fromResponse( @@ -778,7 +735,7 @@ public CloneMigrationResponse cloneMigration(CloneMigrationRequest request) { "DatabaseMigration", "CloneMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration"); java.util.function.Function transformer = CloneMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -819,7 +776,7 @@ public ConnectionDiagnosticsResponse connectionDiagnostics( "DatabaseMigration", "ConnectionDiagnostics", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics"); java.util.function.Function transformer = ConnectionDiagnosticsConverter.fromResponse( @@ -894,7 +851,10 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", "CreateMigration", ib.getRequestUri().toString(), ""); + "DatabaseMigration", + "CreateMigration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration"); java.util.function.Function transformer = CreateMigrationConverter.fromResponse( @@ -918,42 +878,6 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) { }); } - @Override - public DeleteAgentResponse deleteAgent(DeleteAgentRequest request) { - LOG.trace("Called deleteAgent"); - final DeleteAgentRequest interceptedRequest = - DeleteAgentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteAgentConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "DeleteAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent"); - java.util.function.Function transformer = - DeleteAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) { LOG.trace("Called deleteConnection"); @@ -971,7 +895,7 @@ public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request "DatabaseMigration", "DeleteConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection"); java.util.function.Function transformer = DeleteConnectionConverter.fromResponse( @@ -1008,7 +932,7 @@ public DeleteJobResponse deleteJob(DeleteJobRequest request) { "DatabaseMigration", "DeleteJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob"); java.util.function.Function transformer = DeleteJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1044,7 +968,7 @@ public DeleteMigrationResponse deleteMigration(DeleteMigrationRequest request) { "DatabaseMigration", "DeleteMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration"); java.util.function.Function transformer = DeleteMigrationConverter.fromResponse( @@ -1083,7 +1007,7 @@ public EvaluateMigrationResponse evaluateMigration(EvaluateMigrationRequest requ "DatabaseMigration", "EvaluateMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration"); java.util.function.Function transformer = EvaluateMigrationConverter.fromResponse( @@ -1121,7 +1045,7 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request "DatabaseMigration", "GetAdvisorReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport"); java.util.function.Function transformer = GetAdvisorReportConverter.fromResponse( @@ -1141,40 +1065,6 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request }); } - @Override - public GetAgentResponse getAgent(GetAgentRequest request) { - LOG.trace("Called getAgent"); - final GetAgentRequest interceptedRequest = GetAgentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetAgentConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "GetAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent"); - java.util.function.Function transformer = - GetAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public GetConnectionResponse getConnection(GetConnectionRequest request) { LOG.trace("Called getConnection"); @@ -1192,7 +1082,7 @@ public GetConnectionResponse getConnection(GetConnectionRequest request) { "DatabaseMigration", "GetConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection"); java.util.function.Function transformer = GetConnectionConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1226,7 +1116,7 @@ public GetJobResponse getJob(GetJobRequest request) { "DatabaseMigration", "GetJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob"); java.util.function.Function transformer = GetJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1261,7 +1151,7 @@ public GetJobOutputContentResponse getJobOutputContent(GetJobOutputContentReques "DatabaseMigration", "GetJobOutputContent", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent"); java.util.function.Function transformer = GetJobOutputContentConverter.fromResponse( @@ -1298,7 +1188,7 @@ public GetMigrationResponse getMigration(GetMigrationRequest request) { "DatabaseMigration", "GetMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration"); java.util.function.Function transformer = GetMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1333,7 +1223,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { "DatabaseMigration", "GetWorkRequest", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1351,77 +1241,6 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { }); } - @Override - public ListAgentImagesResponse listAgentImages(ListAgentImagesRequest request) { - LOG.trace("Called listAgentImages"); - final ListAgentImagesRequest interceptedRequest = - ListAgentImagesConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListAgentImagesConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ListAgentImages", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages"); - java.util.function.Function - transformer = - ListAgentImagesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListAgentsResponse listAgents(ListAgentsRequest request) { - LOG.trace("Called listAgents"); - final ListAgentsRequest interceptedRequest = ListAgentsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListAgentsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "ListAgents", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents"); - java.util.function.Function transformer = - ListAgentsConverter.fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public ListConnectionsResponse listConnections(ListConnectionsRequest request) { LOG.trace("Called listConnections"); @@ -1439,7 +1258,7 @@ public ListConnectionsResponse listConnections(ListConnectionsRequest request) { "DatabaseMigration", "ListConnections", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections"); java.util.function.Function transformer = ListConnectionsConverter.fromResponse( @@ -1476,7 +1295,7 @@ public ListExcludedObjectsResponse listExcludedObjects(ListExcludedObjectsReques "DatabaseMigration", "ListExcludedObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects"); java.util.function.Function transformer = ListExcludedObjectsConverter.fromResponse( @@ -1513,7 +1332,7 @@ public ListJobOutputsResponse listJobOutputs(ListJobOutputsRequest request) { "DatabaseMigration", "ListJobOutputs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs"); java.util.function.Function transformer = ListJobOutputsConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1547,7 +1366,7 @@ public ListJobsResponse listJobs(ListJobsRequest request) { "DatabaseMigration", "ListJobs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs"); java.util.function.Function transformer = ListJobsConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1583,7 +1402,7 @@ public ListMigrationObjectTypesResponse listMigrationObjectTypes( "DatabaseMigration", "ListMigrationObjectTypes", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes"); java.util.function.Function transformer = ListMigrationObjectTypesConverter.fromResponse( @@ -1620,7 +1439,7 @@ public ListMigrationObjectsResponse listMigrationObjects(ListMigrationObjectsReq "DatabaseMigration", "ListMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects"); java.util.function.Function transformer = ListMigrationObjectsConverter.fromResponse( @@ -1657,7 +1476,7 @@ public ListMigrationsResponse listMigrations(ListMigrationsRequest request) { "DatabaseMigration", "ListMigrations", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations"); java.util.function.Function transformer = ListMigrationsConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1693,7 +1512,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( "DatabaseMigration", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1730,7 +1549,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques "DatabaseMigration", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -1767,7 +1586,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request "DatabaseMigration", "ListWorkRequests", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -1805,7 +1624,7 @@ public RemoveMigrationObjectsResponse removeMigrationObjects( "DatabaseMigration", "RemoveMigrationObjects", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects"); java.util.function.Function transformer = RemoveMigrationObjectsConverter.fromResponse( @@ -1846,7 +1665,7 @@ public ResumeJobResponse resumeJob(ResumeJobRequest request) { "DatabaseMigration", "ResumeJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob"); java.util.function.Function transformer = ResumeJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1886,7 +1705,7 @@ public RetrieveSupportedPhasesResponse retrieveSupportedPhases( "DatabaseMigration", "RetrieveSupportedPhases", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases"); java.util.function.Function transformer = RetrieveSupportedPhasesConverter.fromResponse( @@ -1925,7 +1744,7 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) { "DatabaseMigration", "StartMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration"); java.util.function.Function transformer = StartMigrationConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1947,46 +1766,6 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) { }); } - @Override - public UpdateAgentResponse updateAgent(UpdateAgentRequest request) { - LOG.trace("Called updateAgent"); - final UpdateAgentRequest interceptedRequest = - UpdateAgentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateAgentConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DatabaseMigration", - "UpdateAgent", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent"); - java.util.function.Function transformer = - UpdateAgentConverter.fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest.getUpdateAgentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) { LOG.trace("Called updateConnection"); @@ -2004,7 +1783,7 @@ public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request "DatabaseMigration", "UpdateConnection", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection"); java.util.function.Function transformer = UpdateConnectionConverter.fromResponse( @@ -2044,7 +1823,7 @@ public UpdateJobResponse updateJob(UpdateJobRequest request) { "DatabaseMigration", "UpdateJob", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob"); java.util.function.Function transformer = UpdateJobConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -2083,7 +1862,7 @@ public UpdateMigrationResponse updateMigration(UpdateMigrationRequest request) { "DatabaseMigration", "UpdateMigration", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration"); + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration"); java.util.function.Function transformer = UpdateMigrationConverter.fromResponse( 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 ef73549d29..d41dd213f6 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 @@ -25,7 +25,7 @@ * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationPaginators { private final DatabaseMigration client; @@ -33,227 +33,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. @@ -820,122 +599,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 95597c395a..b613c5b5be 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationWaiters { private final java.util.concurrent.ExecutorService executorService; private final DatabaseMigration client; @@ -28,109 +28,12 @@ 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 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 + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter 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( @@ -151,7 +54,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( @@ -170,17 +73,17 @@ public com.oracle.bmc.waiter.Waiter * @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 + * @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), @@ -192,8 +95,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<>( @@ -215,7 +119,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/SdkClientsMetadata.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/SdkClientsMetadata.java index a7649f25aa..0dfbff694e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/SdkClientsMetadata.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/SdkClientsMetadata.java @@ -6,6 +6,6 @@ import com.oracle.bmc.SdkClients; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @SdkClients({DatabaseMigrationAsyncClient.class, DatabaseMigrationClient.class}) public final class SdkClientsMetadata {} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AbortJobConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AbortJobConverter.java index 51b658994e..f725e33e5d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AbortJobConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AbortJobConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AbortJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AddMigrationObjectsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AddMigrationObjectsConverter.java index 2c0503dd93..bb22b50351 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AddMigrationObjectsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/AddMigrationObjectsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AddMigrationObjectsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeConnectionCompartmentConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeConnectionCompartmentConverter.java index 3f095771a7..ca26e55d06 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeConnectionCompartmentConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeConnectionCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeConnectionCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -38,7 +38,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("connections") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeMigrationCompartmentConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeMigrationCompartmentConverter.java index b4fb349c81..175d3e5406 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeMigrationCompartmentConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeMigrationCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeMigrationCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -38,7 +38,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CloneMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CloneMigrationConverter.java index 911f24164f..7323df52d4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CloneMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CloneMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CloneMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ConnectionDiagnosticsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ConnectionDiagnosticsConverter.java index 6ba17b0c68..88316ab942 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ConnectionDiagnosticsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ConnectionDiagnosticsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ConnectionDiagnosticsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("connections") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateConnectionConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateConnectionConverter.java index 308c86ea06..ba31ff8c0d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateConnectionConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateConnectionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateConnectionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateConnectionDetails(), "createConnectionDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("connections"); + client.getBaseTarget().path("/20230518").path("connections"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateMigrationConverter.java index 45e71fb75f..6770df7e1f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/CreateMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCreateMigrationDetails(), "createMigrationDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("migrations"); + client.getBaseTarget().path("/20230518").path("migrations"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteConnectionConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteConnectionConverter.java index e69ef7d585..8e0f3f9bb8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteConnectionConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteConnectionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteConnectionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("connections") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteJobConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteJobConverter.java index ca3dd0e5f4..c1fac5e3b0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteJobConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteJobConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteMigrationConverter.java index 74f9a6f295..cfe91f2c07 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/EvaluateMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/EvaluateMigrationConverter.java index ef6eac60cb..b1448608bc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/EvaluateMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/EvaluateMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class EvaluateMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAdvisorReportConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAdvisorReportConverter.java index f8a1d1b3fe..3cac4786af 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAdvisorReportConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAdvisorReportConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetAdvisorReportConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetConnectionConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetConnectionConverter.java index ca57ed1c5d..89af43eb74 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetConnectionConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetConnectionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetConnectionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("connections") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobConverter.java index 0f0d0d8d91..eab742cd42 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobOutputContentConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobOutputContentConverter.java index 40573f562a..a25399f090 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobOutputContentConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetJobOutputContentConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobOutputContentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetMigrationConverter.java index 00440aa2f5..17c5f1dd93 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetWorkRequestConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetWorkRequestConverter.java index 3be6be0b7d..c73bca94cb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetWorkRequestConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetWorkRequestConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetWorkRequestConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListConnectionsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListConnectionsConverter.java index c82b0b0050..043f6cf750 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListConnectionsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListConnectionsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListConnectionsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("connections"); + client.getBaseTarget().path("/20230518").path("connections"); target = target.queryParam( @@ -40,6 +40,32 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); + if (request.getTechnologyType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "technologyType", + request.getTechnologyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getConnectionType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "connectionType", + request.getConnectionType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSourceConnectionId() != null) { + target = + target.queryParam( + "sourceConnectionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSourceConnectionId())); + } + if (request.getDisplayName() != null) { target = target.queryParam( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListExcludedObjectsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListExcludedObjectsConverter.java index b7c44fe4da..2d446e638a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListExcludedObjectsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListExcludedObjectsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListExcludedObjectsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobOutputsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobOutputsConverter.java index 9a994f1aa4..d475c17232 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobOutputsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobOutputsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobOutputsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobsConverter.java index 35cb61f87a..f05b957265 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListJobsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getMigrationId(), "migrationId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("jobs"); + client.getBaseTarget().path("/20230518").path("jobs"); target = target.queryParam( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectTypesConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectTypesConverter.java index cc83115883..8649fd3327 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectTypesConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectTypesConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectTypesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -31,9 +31,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.databasemigration.requests.ListMigrationObjectTypesRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getConnectionType(), "connectionType is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("migrationObjectTypes"); + client.getBaseTarget().path("/20230518").path("migrationObjectTypes"); if (request.getSortBy() != null) { target = @@ -67,6 +68,12 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getPage())); } + target = + target.queryParam( + "connectionType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getConnectionType().getValue())); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectsConverter.java index 9418971e4f..fb8cd55424 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationObjectsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationsConverter.java index 90a500b35e..2a8c19e5a3 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListMigrationsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("migrations"); + client.getBaseTarget().path("/20230518").path("migrations"); target = target.queryParam( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestErrorsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestErrorsConverter.java index 17f1a7c65e..86ae90fc05 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestErrorsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestErrorsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestLogsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestLogsConverter.java index c2c9236d42..0609c655f7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestLogsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestLogsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestsConverter.java index 6c21765cb4..dd1b1d11d9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListWorkRequestsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("workRequests"); + client.getBaseTarget().path("/20230518").path("workRequests"); target = target.queryParam( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RemoveMigrationObjectsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RemoveMigrationObjectsConverter.java index ee7ff723a5..c1e5b3a725 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RemoveMigrationObjectsConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RemoveMigrationObjectsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RemoveMigrationObjectsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -38,7 +38,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ResumeJobConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ResumeJobConverter.java index 0c2f94ae16..20c9291fab 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ResumeJobConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ResumeJobConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ResumeJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RetrieveSupportedPhasesConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RetrieveSupportedPhasesConverter.java index 76029d6dc3..7bc7a4be97 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RetrieveSupportedPhasesConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RetrieveSupportedPhasesConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RetrieveSupportedPhasesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/StartMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/StartMigrationConverter.java index 18926cba3b..818519b28b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/StartMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/StartMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class StartMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateConnectionConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateConnectionConverter.java index 7d0a7722b0..624efcd126 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateConnectionConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateConnectionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateConnectionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("connections") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateJobConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateJobConverter.java index 9fabe70744..7e42c4ecfb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateJobConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateJobConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("jobs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateMigrationConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateMigrationConverter.java index af57c1b746..2e6e32b17b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateMigrationConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateMigrationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateMigrationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") + .path("/20230518") .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( 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 2ca14438ac..093eddee06 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBDedicatedAutoCreateTablespaceDetails.Builder.class ) @@ -29,14 +29,16 @@ public final class ADBDedicatedAutoCreateTablespaceDetails extends TargetTypeTab @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 @@ -47,14 +49,14 @@ public Builder isAutoCreate(Boolean 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 @@ -65,14 +67,16 @@ public Builder isBigFile(Boolean 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 @@ -160,14 +164,16 @@ public ADBDedicatedAutoCreateTablespaceDetails( } /** - * 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 **/ @@ -176,14 +182,14 @@ public Boolean getIsAutoCreate() { } /** - * 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 **/ @@ -192,14 +198,16 @@ public Boolean getIsBigFile() { } /** - * 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 eb79ecbe77..18f618feb5 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBDedicatedRemapTargetTablespaceDetails.Builder.class ) @@ -29,14 +29,14 @@ 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 @@ -86,14 +86,14 @@ public ADBDedicatedRemapTargetTablespaceDetails(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. * **/ @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 259540f14a..b2f4173e42 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,7 @@ 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBServerlesTablespaceDetails.Builder.class ) @@ -29,14 +29,14 @@ 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 @@ -86,7 +86,7 @@ public ADBServerlesTablespaceDetails(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 { @@ -134,14 +134,14 @@ public static RemapTarget create(String key) { } }; /** - * 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 2418821f32..0adeb8029c 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class AdminCredentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 ca158c0b40..9eb682f187 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class AdvisorReport extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -56,14 +56,14 @@ public Builder reportLocationDetails(AdvisorReportLocationDetails reportLocation 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 @@ -207,14 +207,14 @@ public AdvisorReportLocationDetails getReportLocationDetails() { } /** - * 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 aa398f7ee1..aab6d63d30 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,7 +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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AdvisorReportBucketDetails.Builder.class ) @@ -34,14 +34,14 @@ 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 @@ -70,14 +70,14 @@ public Builder namespace(String 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 @@ -128,14 +128,14 @@ public Builder toBuilder() { } /** - * 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 **/ @@ -160,14 +160,14 @@ public String getNamespace() { } /** - * 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 08ee94232d..e22b8b28b5 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AdvisorReportLocationDetails.Builder.class ) @@ -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 accessed. + * 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 accessed. + * File system path on the Source Database host where the Premigration Advisor report can be accessed. * * @param locationInSource the value to set * @return this builder @@ -105,14 +105,14 @@ public AdvisorReportBucketDetails getObjectStorageDetails() { } /** - * Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed. + * 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 accessed. + * 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 e277ab5fb9..414ae52c65 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 @@ -8,7 +8,7 @@ * Pre-Migration advisor result. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum AdvisorResults { Fatal("FATAL"), Blocker("BLOCKER"), 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 8e396d0f6e..10ed5a2146 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeConnectionCompartmentDetails.Builder.class ) @@ -32,15 +32,13 @@ 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 **/ @@ -83,15 +81,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getCompartmentId() { 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 8c86047b9c..f8b3b71cc0 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,8 +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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeMigrationCompartmentDetails.Builder.class ) @@ -32,15 +31,13 @@ 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 **/ @@ -83,15 +80,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getCompartmentId() { 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 d280c7d66a..c6ba51286a 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,8 +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 @@ -15,336 +14,61 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CloneMigrationDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class CloneMigrationDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class CloneMigrationDetails extends com.oracle.bmc.http.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 **/ @@ -353,15 +77,13 @@ public String getDisplayName() { } /** - * 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 **/ public String getCompartmentId() { @@ -369,31 +91,13 @@ public String getCompartmentId() { } /** - * 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 **/ public String getSourceDatabaseConnectionId() { @@ -401,33 +105,13 @@ public String getSourceDatabaseConnectionId() { } /** - * 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 **/ public String getTargetDatabaseConnectionId() { @@ -435,55 +119,16 @@ 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 **/ @@ -525,16 +170,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(")"); @@ -553,17 +192,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); @@ -577,29 +209,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 0000000000..fa62bfbabb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java @@ -0,0 +1,75 @@ +/** + * 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. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum CompatibilityOption { + 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 975e6fce7f..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java +++ /dev/null @@ -1,272 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConnectDescriptor extends com.oracle.bmc.http.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 867a7636e1..abf5596068 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,8 +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 @@ -15,606 +14,156 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Connection.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "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.internal.ExplicitlySetFilter.NAME) -public final class Connection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class Connection extends com.oracle.bmc.http.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; - } + /** + * 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(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; - } + /** + * 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 + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + @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 **/ public String getCompartmentId() { @@ -622,293 +171,342 @@ public String getCompartmentId() { } /** - * 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"} * **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private final DatabaseConnectionTypes databaseType; + @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. - * + * The Connection's current lifecycle state. **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** - * Database Connection display name identifier. - * + * The Connection's current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The Connection's current lifecycle state. * @return the value **/ - public String getDisplayName() { - return displayName; + public LifecycleState getLifecycleState() { + return lifecycleState; } /** - * The OCID of the cloud database. + * 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("databaseId") - private final String databaseId; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; /** - * The OCID of the cloud database. + * 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 **/ - public String getDatabaseId() { - return databaseId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private final ConnectDescriptor connectDescriptor; - - public ConnectDescriptor getConnectDescriptor() { - return connectDescriptor; + public String getLifecycleDetails() { + return lifecycleDetails; } /** - * OCID of the Secret in the OCI vault containing the Database Connection credentials. + * 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("credentialsSecretId") - private final String credentialsSecretId; + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; /** - * OCID of the Secret in the OCI vault containing the Database Connection credentials. + * The time when this resource was created. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value **/ - public String getCredentialsSecretId() { - return credentialsSecretId; + public java.util.Date getTimeCreated() { + return timeCreated; } /** - * This name is the distinguished name used while creating the certificate on target database. + * 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("certificateTdn") - private final String certificateTdn; + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; /** - * This name is the distinguished name used while creating the certificate on target database. + * The time when this resource was updated. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value **/ - public String getCertificateTdn() { - return certificateTdn; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final SshDetails sshDetails; - - public SshDetails getSshDetails() { - return sshDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private final AdminCredentials adminCredentials; - - public AdminCredentials getAdminCredentials() { - return adminCredentials; + public java.util.Date getTimeUpdated() { + return timeUpdated; } - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private final AdminCredentials replicationCredentials; + /** + * OCI resource ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; - public AdminCredentials getReplicationCredentials() { - return replicationCredentials; + /** + * OCI resource ID. + * @return the value + **/ + public String getVaultId() { + return vaultId; } - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private final PrivateEndpointDetails privateEndpoint; + /** + * The OCID of the key used in cryptographic operations. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; - public PrivateEndpointDetails getPrivateEndpoint() { - return privateEndpoint; + /** + * The OCID of the key used in cryptographic operations. + * @return the value + **/ + public String getKeyId() { + return keyId; } - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final VaultDetails vaultDetails; + /** + * OCI resource ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; - public VaultDetails getVaultDetails() { - return vaultDetails; + /** + * OCI resource ID. + * @return the value + **/ + public String getSubnetId() { + return subnetId; } /** - * The current state of the Connection resource. - * + * List of ingress IP addresses from where to connect to this connection's privateIp. **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private final java.util.List ingressIps; /** - * The current state of the Connection resource. - * + * List of ingress IP addresses from where to connect to this connection's privateIp. * @return the value **/ - public LifecycleStates getLifecycleState() { - return lifecycleState; + public java.util.List getIngressIps() { + return ingressIps; } /** - * A message describing the current state in more detail. For example, can be used to provide actionable information - * for a resource in Failed state. + * An array of Network Security Group OCIDs used to define network access for Connections. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; /** - * A message describing the current state in more detail. For example, can be used to provide actionable information - * for a resource in Failed state. + * An array of Network Security Group OCIDs used to define network access for Connections. * * @return the value **/ - public String getLifecycleDetails() { - return lifecycleDetails; + public java.util.List getNsgIds() { + return nsgIds; } /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. + * The username (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. + * The username (credential) used when creating or updating this resource. * * @return the value **/ - public java.util.Date getTimeCreated() { - return timeCreated; + public String getUsername() { + return username; } /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime string. + * The password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime string. + * The password (credential) used when creating or updating this resource. * * @return the value **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; + public String getPassword() { + return 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 username (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private final String replicationUsername; /** - * 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 **/ - public java.util.Map getFreeformTags() { - return freeformTags; + public String getReplicationUsername() { + return replicationUsername; } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * The password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private final String replicationPassword; /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * The password (credential) used when creating or updating this resource. * * @return the value **/ - public java.util.Map> getDefinedTags() { - return definedTags; + public String getReplicationPassword() { + return replicationPassword; } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * + * The OCID of the resource being referenced. **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private final String secretId; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * + * The OCID of the resource being referenced. * @return the value **/ - public java.util.Map> getSystemTags() { - return systemTags; + public String getSecretId() { + return secretId; } /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * + * The OCID of the resource being referenced. **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private final String privateEndpointId; /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * + * The OCID of the resource being referenced. * @return the value **/ - public java.util.List getNsgIds() { - return nsgIds; + public String getPrivateEndpointId() { + return privateEndpointId; } @Override @@ -926,28 +524,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(); } @@ -963,29 +560,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); } @@ -994,54 +589,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 a8cde46646..8746f48ed9 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,8 +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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConnectionCollection.Builder.class ) @@ -31,15 +30,13 @@ 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 **/ @@ -81,15 +78,13 @@ public Builder toBuilder() { } /** - * 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 **/ public java.util.List getItems() { 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 91b8a3dcbe..a42b8b6032 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,8 +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 @@ -15,462 +14,138 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ConnectionSummary.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "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.internal.ExplicitlySetFilter.NAME) -public final class ConnectionSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class ConnectionSummary extends com.oracle.bmc.http.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 + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + @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 **/ public String getCompartmentId() { @@ -478,94 +153,102 @@ public String getCompartmentId() { } /** - * 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"} * **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private final DatabaseConnectionTypes databaseType; + @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. - * + * Lifecycle state for connection. **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; + @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. + * 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("databaseId") - private final String databaseId; + @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 **/ @@ -574,14 +257,16 @@ 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 **/ @@ -590,91 +275,59 @@ public java.util.Date getTimeUpdated() { } /** - * The current state of the Connection resource. - * + * OCI resource ID. **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; + @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. - * + * The OCID of the key used in cryptographic operations. **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; + @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"}} - * + * OCI resource ID. **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + @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"}}} - * + * List of ingress IP addresses from where to connect to this connection's privateIp. **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + @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; } /** @@ -708,19 +361,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(); @@ -737,19 +391,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); } @@ -759,29 +414,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 65% 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 e0d0a5f7a5..17865339d4 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 @@ -5,13 +5,14 @@ package com.oracle.bmc.databasemigration.model; /** - * Supported database manual connection subtypes + * The type of database connection. + * Example: ORACLE or MYSQL * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DatabaseManualConnectionSubTypes { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum ConnectionType { + 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 @@ -20,21 +21,21 @@ public enum DatabaseManualConnectionSubTypes { 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; } @@ -44,12 +45,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 1fd8c683b3..1666cd0523 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBDedicatedAutoCreateTablespaceDetails.Builder.class ) @@ -30,14 +30,16 @@ public final class CreateADBDedicatedAutoCreateTablespaceDetails @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 @@ -48,14 +50,14 @@ public Builder isAutoCreate(Boolean 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 @@ -66,14 +68,16 @@ public Builder isBigFile(Boolean 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 @@ -161,14 +165,16 @@ public CreateADBDedicatedAutoCreateTablespaceDetails( } /** - * 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 **/ @@ -177,14 +183,14 @@ public Boolean getIsAutoCreate() { } /** - * 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 **/ @@ -193,14 +199,16 @@ public Boolean getIsBigFile() { } /** - * 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 01265ee473..5abba97067 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBDedicatedRemapTargetTablespaceDetails.Builder.class ) @@ -30,14 +30,14 @@ 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 @@ -87,14 +87,14 @@ public CreateADBDedicatedRemapTargetTablespaceDetails(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. * **/ @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 dd96795fee..5bf027116d 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,7 @@ 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBServerlesTablespaceDetails.Builder.class ) 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 9259cd1f01..d618f2790f 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateAdminCredentials.Builder.class ) 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 f06f97a006..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectDescriptor.java +++ /dev/null @@ -1,290 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateConnectDescriptor - extends com.oracle.bmc.http.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 5ee3625410..d613bccf99 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,8 +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 @@ -15,441 +14,115 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateConnectionDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "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.internal.ExplicitlySetFilter.NAME) -public final class CreateConnectionDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class CreateConnectionDetails extends com.oracle.bmc.http.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; - } + /** + * 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; - @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; - } + /** + * 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; } /** - * 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; } /** - * 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 **/ public String getCompartmentId() { @@ -457,211 +130,161 @@ public String getCompartmentId() { } /** - * Database Connection display name identifier. + * 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("displayName") - private final String displayName; + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; /** - * Database Connection display name identifier. + * 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 getDisplayName() { - return displayName; + public java.util.Map getFreeformTags() { + return freeformTags; } /** - * Database connection type. + * 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("databaseType") - private final DatabaseConnectionTypes databaseType; + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; /** - * Database connection type. + * 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 DatabaseConnectionTypes getDatabaseType() { - return databaseType; + public java.util.Map> getDefinedTags() { + return definedTags; } /** - * Database manual connection subtype. This value can only be specified for manual connections. - * + * OCI resource ID. **/ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private final DatabaseManualConnectionSubTypes manualDatabaseSubType; + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * Database manual connection subtype. This value can only be specified for manual connections. - * + * OCI resource ID. * @return the value **/ - public DatabaseManualConnectionSubTypes getManualDatabaseSubType() { - return manualDatabaseSubType; + public String getVaultId() { + return vaultId; } /** - * The OCID of the cloud database. Required if the database connection type is Autonomous. - * + * The OCID of the key used in cryptographic operations. **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; /** - * The OCID of the cloud database. Required if the database connection type is Autonomous. - * + * The OCID of the key used in cryptographic operations. * @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 getKeyId() { + return keyId; } /** - * 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. - * + * OCI resource ID. **/ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private final String certificateTdn; + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; /** - * 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. - * + * OCI resource ID. * @return the value **/ - public String getCertificateTdn() { - return certificateTdn; + public String getSubnetId() { + return subnetId; } /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections. + * An array of Network Security Group OCIDs used to define network access for Connections. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("tlsWallet") - private final String tlsWallet; + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections. + * An array of Network Security Group OCIDs used to define network access for Connections. * * @return the value **/ - public String getTlsWallet() { - return tlsWallet; + public java.util.List getNsgIds() { + return nsgIds; } /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections. + * The username (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private final String tlsKeystore; + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections. + * The username (credential) used when creating or updating this resource. * * @return the value **/ - public String getTlsKeystore() { - return tlsKeystore; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final CreateSshDetails sshDetails; - - public CreateSshDetails getSshDetails() { - return sshDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private final CreateAdminCredentials adminCredentials; - - public CreateAdminCredentials getAdminCredentials() { - return adminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private final CreateAdminCredentials replicationCredentials; - - public CreateAdminCredentials getReplicationCredentials() { - return replicationCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private final CreatePrivateEndpoint privateEndpoint; - - public CreatePrivateEndpoint getPrivateEndpoint() { - return privateEndpoint; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final CreateVaultDetails vaultDetails; - - public CreateVaultDetails getVaultDetails() { - return vaultDetails; + public String getUsername() { + return 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 password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + @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"}}} + * The username (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + @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. + * The password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + @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 @@ -678,23 +301,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(); } @@ -709,24 +328,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); } @@ -734,41 +348,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 f965b4c924..98b052aa72 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 @@ -6,7 +6,6 @@ /** * Optional properties for Curl-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateCurlTransferDetails.Builder.class ) 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 606f709236..d33035be86 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,8 +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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDataPumpParameters.Builder.class ) @@ -51,14 +50,12 @@ public CreateDataPumpParameters( public static class Builder { /** * 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 process to run on one instance. - * * @param isCluster the value to set * @return this builder **/ @@ -69,14 +66,12 @@ public Builder isCluster(Boolean isCluster) { } /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @param estimate the value to set * @return this builder **/ @@ -105,14 +100,12 @@ public Builder tableExistsAction(DataPumpTableExistsAction tableExistsAction) { } /** * Exclude paratemers for Export and Import. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private java.util.List excludeParameters; /** * Exclude paratemers for Export and Import. - * * @param excludeParameters the value to set * @return this builder **/ @@ -144,14 +137,12 @@ public Builder importParallelismDegree(Integer importParallelismDegree) { } /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @param exportParallelismDegree the value to set * @return this builder **/ @@ -216,14 +207,12 @@ public Builder toBuilder() { /** * 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 process to run on one instance. - * * @return the value **/ public Boolean getIsCluster() { @@ -232,14 +221,12 @@ public Boolean getIsCluster() { /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private final DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @return the value **/ public DataPumpEstimate getEstimate() { @@ -264,14 +251,12 @@ public DataPumpTableExistsAction getTableExistsAction() { /** * Exclude paratemers for Export and Import. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private final java.util.List excludeParameters; /** * Exclude paratemers for Export and Import. - * * @return the value **/ public java.util.List getExcludeParameters() { @@ -298,14 +283,12 @@ public Integer getImportParallelismDegree() { /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private final Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @return the value **/ public Integer getExportParallelismDegree() { 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 37153fcfbc..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataTransferMediumDetails.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. 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDataTransferMediumDetails - extends com.oracle.bmc.http.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 84b434a610..e5841a1ee1 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDirectoryObject.Builder.class ) @@ -36,14 +36,12 @@ public CreateDirectoryObject(String name, String path) { public static class Builder { /** * Name of directory object in database - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * Name of directory object in database - * * @param name the value to set * @return this builder **/ @@ -54,14 +52,12 @@ public Builder name(String name) { } /** * Absolute path of directory on database server - * **/ @com.fasterxml.jackson.annotation.JsonProperty("path") private String path; /** * Absolute path of directory on database server - * * @param path the value to set * @return this builder **/ @@ -107,14 +103,12 @@ public Builder toBuilder() { /** * Name of directory object in database - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * Name of directory object in database - * * @return the value **/ public String getName() { @@ -123,14 +117,12 @@ public String getName() { /** * Absolute path of directory on database server - * **/ @com.fasterxml.jackson.annotation.JsonProperty("path") private final String path; /** * Absolute path of directory on database server - * * @return the value **/ public String getPath() { 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 8e12820cc1..167bd02c84 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 @@ -6,7 +6,6 @@ /** * Parameters for GoldenGate Extract 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class CreateExtract extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 b7e345c160..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHub.java +++ /dev/null @@ -1,426 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateGoldenGateHub extends com.oracle.bmc.http.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 0000000000..c46917666a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHubDetails.java @@ -0,0 +1,389 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGoldenGateHubDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateGoldenGateHubDetails + extends com.oracle.bmc.http.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 864ed448d2..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateServiceDetails.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateGoldenGateServiceDetails - extends com.oracle.bmc.http.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 a83275ffae..94204263b4 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,8 +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 set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, @@ -103,8 +102,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 { 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 7acf2b78cb..69c1816a34 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,8 +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 @@ -15,534 +14,82 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateMigrationDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class CreateMigrationDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class CreateMigrationDetails extends com.oracle.bmc.http.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. + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private final MigrationTypes type; + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * Migration type. + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * * @return the value **/ - public MigrationTypes getType() { - return type; + public String getDescription() { + return description; } /** - * Migration Display Name - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * Migration Display Name - * - * @return the value - **/ - 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 **/ public String getCompartmentId() { @@ -550,186 +97,80 @@ public String getCompartmentId() { } /** - * The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. + * 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("agentId") - private final String agentId; + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final MigrationTypes type; /** - * The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. + * 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 getAgentId() { - return agentId; + public MigrationTypes getType() { + return type; } /** - * The OCID of the Source Database Connection. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private final String sourceDatabaseConnectionId; + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; /** - * The OCID of the Source Database Connection. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * * @return the value **/ - public String getSourceDatabaseConnectionId() { - return sourceDatabaseConnectionId; + public String getDisplayName() { + return displayName; } /** - * 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. - * + * The OCID of the resource being referenced. **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private final String 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. - * + * The OCID of the resource being referenced. * @return the value **/ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; + public String getSourceDatabaseConnectionId() { + return sourceDatabaseConnectionId; } /** - * 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 **/ 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; - } - - /** - * 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; - } - - /** - * 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; - - /** - * Database objects to exclude/include from migration in CSV format. The excludeObjects and includeObjects fields will be ignored if this field is not null. - * - * @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; - } - - /** - * 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 **/ @@ -769,30 +210,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(")"); @@ -809,31 +234,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); @@ -843,64 +251,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/UpdateAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAdvisorSettings.java similarity index 90% 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/CreateMySqlAdvisorSettings.java index aeb29921bb..b21f296583 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/CreateMySqlAdvisorSettings.java @@ -6,7 +6,6 @@ /** * 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 @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateAdvisorSettings.Builder.class + builder = CreateMySqlAdvisorSettings.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateAdvisorSettings +public final class CreateMySqlAdvisorSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public UpdateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public CreateMySqlAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -34,14 +33,12 @@ public UpdateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { 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 **/ @@ -72,9 +69,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 CreateMySqlAdvisorSettings build() { + CreateMySqlAdvisorSettings model = + new CreateMySqlAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -82,7 +79,7 @@ public UpdateAdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateAdvisorSettings model) { + public Builder copy(CreateMySqlAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -106,14 +103,12 @@ public Builder toBuilder() { /** * 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() { @@ -148,7 +143,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateAdvisorSettings("); + 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)); @@ -161,11 +156,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAdvisorSettings)) { + if (!(o instanceof CreateMySqlAdvisorSettings)) { return false; } - UpdateAdvisorSettings other = (UpdateAdvisorSettings) 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 0000000000..5508c9a8da --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlDataTransferMediumDetails.java @@ -0,0 +1,112 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) +public class CreateMySqlDataTransferMediumDetails + extends com.oracle.bmc.http.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 { + 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/CreateMySqlGgsDeploymentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlGgsDeploymentDetails.java new file mode 100644 index 0000000000..4e73bac2b3 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlGgsDeploymentDetails.java @@ -0,0 +1,166 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlGgsDeploymentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateMySqlGgsDeploymentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"replicat", "acceptableLag"}) + public CreateMySqlGgsDeploymentDetails(CreateReplicat 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 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 CreateMySqlGgsDeploymentDetails build() { + CreateMySqlGgsDeploymentDetails model = + new CreateMySqlGgsDeploymentDetails(this.replicat, this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMySqlGgsDeploymentDetails 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 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("CreateMySqlGgsDeploymentDetails("); + 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 CreateMySqlGgsDeploymentDetails)) { + return false; + } + + CreateMySqlGgsDeploymentDetails other = (CreateMySqlGgsDeploymentDetails) 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/CreateMySqlInitialLoadSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlInitialLoadSettings.java new file mode 100644 index 0000000000..a64caf6cd0 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlInitialLoadSettings.java @@ -0,0 +1,417 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlInitialLoadSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateMySqlInitialLoadSettings + extends com.oracle.bmc.http.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 0000000000..ab6e28f86d --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlMigrationDetails.java @@ -0,0 +1,498 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 02a9ee152b..a8c69d9a1c 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,8 +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 @@ -15,9 +14,9 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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, @@ -25,14 +24,15 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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; @@ -41,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); } @@ -51,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()); } @@ -71,15 +71,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; } @@ -95,7 +96,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(")"); @@ -107,11 +108,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 0000000000..51712492f9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMysqlConnectionDetails.java @@ -0,0 +1,813 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 da2b8e7fd9..37d4a8598b 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateNonADBAutoCreateTablespaceDetails.Builder.class ) 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 be976b8cab..938e65599e 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateNonADBRemapTablespaceDetails.Builder.class ) 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 1d0ce2faf8..dc4bb7951e 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateObjectStoreBucket.Builder.class ) 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 183002585b..b218ef734e 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 @@ -6,7 +6,6 @@ /** * Optional dump transfer details for OCI-CLI-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateOciCliDumpTransferDetails.Builder.class ) @@ -38,14 +37,12 @@ public Builder walletLocation(String walletLocation) { } /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private String ociHome; /** * Path to the OCI CLI installation in the node. - * * @param ociHome the value to set * @return this builder **/ @@ -98,14 +95,12 @@ public CreateOciCliDumpTransferDetails(String walletLocation, String ociHome) { /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private final String ociHome; /** * Path to the OCI CLI installation in the node. - * * @return the value **/ public String getOciHome() { 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/CreateOracleAdvisorSettings.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/CreateOracleAdvisorSettings.java index ca78df7ae3..8b671fe39c 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/CreateOracleAdvisorSettings.java @@ -6,7 +6,6 @@ /** * 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 @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAdvisorSettings.Builder.class + builder = CreateOracleAdvisorSettings.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAdvisorSettings +public final class CreateOracleAdvisorSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public CreateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public CreateOracleAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -34,14 +33,12 @@ public CreateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { 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 **/ @@ -52,14 +49,12 @@ public Builder isSkipAdvisor(Boolean isSkipAdvisor) { } /** * 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 **/ @@ -72,9 +67,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 CreateOracleAdvisorSettings build() { + CreateOracleAdvisorSettings model = + new CreateOracleAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -82,7 +77,7 @@ public CreateAdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAdvisorSettings model) { + public Builder copy(CreateOracleAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -106,14 +101,12 @@ public Builder toBuilder() { /** * 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() { @@ -122,14 +115,12 @@ public Boolean getIsSkipAdvisor() { /** * 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() { @@ -148,7 +139,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAdvisorSettings("); + 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)); @@ -161,11 +152,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateAdvisorSettings)) { + if (!(o instanceof CreateOracleAdvisorSettings)) { return false; } - CreateAdvisorSettings other = (CreateAdvisorSettings) o; + CreateOracleAdvisorSettings other = (CreateOracleAdvisorSettings) 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/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 2a6a9bbc9c..a95252b67e 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,35 +16,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateAwsS3Details extends com.oracle.bmc.http.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. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * S3 bucket name. - * * @param name the value to set * @return this builder **/ @@ -116,13 +109,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); } @@ -130,7 +136,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()); } @@ -143,6 +149,9 @@ public Builder copy(CreateAwsS3Details model) { if (model.wasPropertyExplicitlySet("secretAccessKey")) { this.secretAccessKey(model.getSecretAccessKey()); } + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } return this; } } @@ -158,16 +167,29 @@ 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; /** * S3 bucket name. - * * @return the value **/ public String getName() { @@ -230,6 +252,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); @@ -242,12 +271,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(); } @@ -257,29 +287,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 0000000000..b0d4c5e15f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleConnectionDetails.java @@ -0,0 +1,647 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..f431917959 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDataTransferMediumDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) +public class CreateOracleDataTransferMediumDetails + extends com.oracle.bmc.http.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 { + 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/CreateOracleDbLinkDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDbLinkDataTransferMediumDetails.java new file mode 100644 index 0000000000..78522a05eb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDbLinkDataTransferMediumDetails.java @@ -0,0 +1,178 @@ +/** + * 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 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 set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.NAME) +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. + * + **/ + @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. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleDbLinkDataTransferMediumDetails build() { + CreateOracleDbLinkDataTransferMediumDetails model = + new CreateOracleDbLinkDataTransferMediumDetails( + this.objectStorageBucket, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleDbLinkDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @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. + * + **/ + @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. + * + * @return the value + **/ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleDbLinkDataTransferMediumDetails)) { + return false; + } + + 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 = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.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 2c7486c852..a0e2024b14 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,8 +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 @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateGoldenGateSettings +public final class CreateOracleGgsDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"extract", "replicat", "acceptableLag"}) - public CreateGoldenGateSettings( + public CreateOracleGgsDeploymentDetails( CreateExtract extract, CreateReplicat replicat, Integer acceptableLag) { super(); this.extract = extract; @@ -74,9 +73,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); } @@ -84,7 +84,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()); } @@ -151,7 +151,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)); @@ -165,11 +165,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 79% 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 d6ddf2cde2..dc909c09f1 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 @@ -6,7 +6,6 @@ /** * Optional settings for Data Pump Export and Import jobs - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,60 +14,40 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDataPumpSettings +public final class CreateOracleInitialLoadSettings extends com.oracle.bmc.http.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; @@ -78,26 +57,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; @@ -125,19 +84,53 @@ 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); } @@ -145,16 +138,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()); } @@ -164,6 +151,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; } } @@ -179,24 +172,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; @@ -204,24 +179,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; @@ -243,6 +200,36 @@ 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); @@ -255,14 +242,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(); } @@ -272,17 +259,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); } @@ -290,15 +277,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()); @@ -312,6 +295,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 0000000000..d4a94bab8f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java @@ -0,0 +1,550 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 d07d963115..6fd351aa22 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,8 +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 @@ -15,41 +14,43 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateDumpTransferDetails - extends com.oracle.bmc.http.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; @@ -76,10 +77,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); } @@ -87,7 +91,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()); } @@ -112,17 +119,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; } @@ -154,9 +181,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)); @@ -169,12 +197,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) @@ -184,7 +214,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 = @@ -192,7 +227,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 0000000000..183be518ed --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleObjectStorageDataTransferMediumDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 cfd6c6a959..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreatePrivateEndpoint.java +++ /dev/null @@ -1,235 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreatePrivateEndpoint - extends com.oracle.bmc.http.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 1c4a5e2529..aae14e6221 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,27 +15,15 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class CreateReplicat extends com.oracle.bmc.http.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 = "") @@ -58,71 +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 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); } @@ -134,15 +63,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; } } @@ -174,54 +94,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); @@ -237,9 +109,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(); } @@ -255,9 +124,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); } @@ -270,19 +136,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 ec086750be..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateSshDetails.java +++ /dev/null @@ -1,263 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateSshDetails extends com.oracle.bmc.http.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 6b7fe1ff3f..00958c7495 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 @@ -6,7 +6,6 @@ /** * Migration tablespace 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, 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 986e7b573c..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateVaultDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateVaultDetails extends com.oracle.bmc.http.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 3713ea0f8a..4af0ecca92 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 @@ -6,7 +6,6 @@ /** * Optional properties for Curl-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CurlTransferDetails.Builder.class ) 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 5517bf249c..70f03f89c3 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 @@ -8,7 +8,7 @@ * Estimate size of dumps that will be generated. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpEstimate { 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 aee8c840c8..fcf6973f33 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 @@ -6,9 +6,8 @@ /** * Supported Import/Export exclude parameters - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpExcludeParameters { 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 e17f4dfbfb..6a0bb34164 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,8 +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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DataPumpParameters.Builder.class ) @@ -49,15 +48,13 @@ 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 **/ @@ -68,14 +65,12 @@ public Builder isCluster(Boolean isCluster) { } /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @param estimate the value to set * @return this builder **/ @@ -104,14 +99,12 @@ public Builder tableExistsAction(DataPumpTableExistsAction tableExistsAction) { } /** * Exclude paratemers for Export and Import. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private java.util.List excludeParameters; /** * Exclude paratemers for Export and Import. - * * @param excludeParameters the value to set * @return this builder **/ @@ -143,14 +136,12 @@ public Builder importParallelismDegree(Integer importParallelismDegree) { } /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @param exportParallelismDegree the value to set * @return this builder **/ @@ -214,15 +205,13 @@ public Builder toBuilder() { } /** - * 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 **/ public Boolean getIsCluster() { @@ -231,14 +220,12 @@ public Boolean getIsCluster() { /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private final DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @return the value **/ public DataPumpEstimate getEstimate() { @@ -263,14 +250,12 @@ public DataPumpTableExistsAction getTableExistsAction() { /** * Exclude paratemers for Export and Import. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private final java.util.List excludeParameters; /** * Exclude paratemers for Export and Import. - * * @return the value **/ public java.util.List getExcludeParameters() { @@ -297,14 +282,12 @@ public Integer getImportParallelismDegree() { /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private final Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @return the value **/ public Integer getExportParallelismDegree() { 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 9ed8fbd55a..278843df16 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 @@ -8,7 +8,7 @@ * IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpTableExistsAction { 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 a206a85808..cb395965f0 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 @@ -6,9 +6,8 @@ /** * Size of Oracle database blocks in KB. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpTablespaceBlockSizesInKb { 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 6ff24f6680..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetails.java +++ /dev/null @@ -1,186 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DataTransferMediumDetails - extends com.oracle.bmc.http.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 69% 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 344217b1e7..1ab1f1d88f 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 @@ -5,14 +5,12 @@ package com.oracle.bmc.databasemigration.model; /** - * Supported database connection types - * + * The database combination. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DatabaseConnectionTypes { - Manual("MANUAL"), - Autonomous("AUTONOMOUS"), - UserManagedOci("USER_MANAGED_OCI"), +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum DatabaseCombination { + Mysql("MYSQL"), + Oracle("ORACLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -21,21 +19,21 @@ public enum DatabaseConnectionTypes { 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; } @@ -45,12 +43,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/DiagnosticsResult.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DiagnosticsResult.java index 91125aff8f..56028ba705 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DiagnosticsResult.Builder.class ) 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 091182d6bc..40fd6f426b 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class DirectoryObject extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 4f58a85da0..8821218cc1 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ExcludedObjectSummary.Builder.class ) 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 2031f52a44..00f14ba976 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ExcludedObjectSummaryCollection.Builder.class ) 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 8133f2a7c8..c7eb223058 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 @@ -6,7 +6,6 @@ /** * Parameters for Extract 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Extract extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 25a43fe21e..fd028107d3 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 @@ -8,7 +8,7 @@ * GoldenGate Extract performance profile * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ExtractPerformanceProfile { 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 9bf50e5336..804ae3c6de 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class GgsDeployment extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -30,15 +29,13 @@ 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 **/ @@ -48,15 +45,13 @@ public Builder deploymentId(String 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 **/ @@ -102,15 +97,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getDeploymentId() { @@ -118,15 +111,13 @@ public String getDeploymentId() { } /** - * 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 **/ public String getGgsAdminCredentialsSecretId() { 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 453be219be..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHub.java +++ /dev/null @@ -1,424 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GoldenGateHub extends com.oracle.bmc.http.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 0000000000..65b4f5ac45 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHubDetails.java @@ -0,0 +1,388 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GoldenGateHubDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GoldenGateHubDetails extends com.oracle.bmc.http.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/HandleGrantErrors.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HandleGrantErrors.java new file mode 100644 index 0000000000..e7babcb9f9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HandleGrantErrors.java @@ -0,0 +1,60 @@ +/** + * 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. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum HandleGrantErrors { + 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 72d509ffcb..b37edd8b1d 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,8 +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 set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java new file mode 100644 index 0000000000..b0d5530f34 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java @@ -0,0 +1,132 @@ +/** + * 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; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = IngressIpDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IngressIpDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ingressIp"}) + public IngressIpDetails(String ingressIp) { + super(); + this.ingressIp = ingressIp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIp") + private String ingressIp; + + /** + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. + * @param ingressIp the value to set + * @return this builder + **/ + 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 IngressIpDetails build() { + IngressIpDetails model = new IngressIpDetails(this.ingressIp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IngressIpDetails model) { + if (model.wasPropertyExplicitlySet("ingressIp")) { + this.ingressIp(model.getIngressIp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIp") + private final String ingressIp; + + /** + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. + * @return the value + **/ + public String getIngressIp() { + return ingressIp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("IngressIpDetails("); + sb.append("super=").append(super.toString()); + sb.append("ingressIp=").append(String.valueOf(this.ingressIp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IngressIpDetails)) { + return false; + } + + 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.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 1faf051248..ace16db8e8 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Job extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -242,16 +242,16 @@ 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 @@ -538,16 +538,16 @@ 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 2c0c44335a..57a0e7d8b5 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class JobCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 f8eab26ace..a7ef4152b8 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 @@ -8,7 +8,7 @@ * Possible lifecycle states. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobLifecycleStates { 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 0000000000..c8061a9702 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeMySql.java @@ -0,0 +1,55 @@ +/** + * 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. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum JobModeMySql { + 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 74% 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 4a234be3c6..b6c6a92066 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 @@ -5,11 +5,10 @@ package com.oracle.bmc.databasemigration.model; /** - * Data Pump job modes - * + * job mode. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DataPumpJobMode { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum JobModeOracle { Full("FULL"), Schema("SCHEMA"), Table("TABLE"), @@ -23,21 +22,21 @@ public enum DataPumpJobMode { 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; } @@ -47,12 +46,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 cdc8f009b1..b58d3d7850 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class JobOutputSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 ad1e339d22..be895882b4 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = JobOutputSummaryCollection.Builder.class ) 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 94d62b6c2d..a2674bdaa8 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 @@ -8,7 +8,7 @@ * Job Phase status. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobPhaseStatus { 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 1b03bb6f95..2355a9831a 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class JobSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -220,16 +220,16 @@ 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 @@ -496,16 +496,16 @@ 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 78d7c88b84..d690337a5b 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 @@ -8,7 +8,7 @@ * Job type. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobTypes { 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 f57750f64d..fa0ad02567 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 @@ -8,7 +8,7 @@ * Possible lifecycle states. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum LifecycleStates { Creating("CREATING"), Updating("UPDATING"), @@ -17,15 +17,7 @@ public enum LifecycleStates { 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; @@ -33,9 +25,7 @@ public enum LifecycleStates { static { map = new java.util.HashMap<>(); for (LifecycleStates v : LifecycleStates.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } + map.put(v.getValue(), v); } } @@ -53,9 +43,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 c41f591e05..9230ee732e 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = LogLocationBucketDetails.Builder.class ) 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 64a29db69d..f628266eba 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class MetadataRemap extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -51,14 +51,12 @@ public Builder type(Type type) { } /** * Specifies the value which needs to be reset. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("oldValue") private String oldValue; /** * Specifies the value which needs to be reset. - * * @param oldValue the value to set * @return this builder **/ @@ -69,14 +67,12 @@ public Builder oldValue(String oldValue) { } /** * Specifies the new value that oldValue should be translated into. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("newValue") private String newValue; /** * Specifies the new value that oldValue should be translated into. - * * @param newValue the value to set * @return this builder **/ @@ -190,14 +186,12 @@ public Type getType() { /** * Specifies the value which needs to be reset. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("oldValue") private final String oldValue; /** * Specifies the value which needs to be reset. - * * @return the value **/ public String getOldValue() { @@ -206,14 +200,12 @@ public String getOldValue() { /** * Specifies the new value that oldValue should be translated into. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("newValue") private final String newValue; /** * Specifies the new value that oldValue should be translated into. - * * @return the value **/ public String getNewValue() { 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 5bed61037b..93d0df4366 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,33 +14,36 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Migration.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class Migration extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class Migration extends com.oracle.bmc.http.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", @@ -51,28 +53,16 @@ public final class Migration extends com.oracle.bmc.http.internal.ExplicitlySetB "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, @@ -83,26 +73,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; @@ -113,644 +91,49 @@ 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(); - } + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; - public Builder toBuilder() { - return new Builder().copy(this); + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getId() { + return id; } /** - * The OCID of the resource + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + @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; } /** - * 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 **/ @@ -759,15 +142,13 @@ public String getDisplayName() { } /** - * 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 **/ public String getCompartmentId() { @@ -775,14 +156,16 @@ public String getCompartmentId() { } /** - * 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 **/ @@ -791,16 +174,16 @@ 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 **/ @@ -809,47 +192,13 @@ public OdmsJobPhases getWaitAfter() { } /** - * 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 **/ public String getSourceDatabaseConnectionId() { @@ -857,31 +206,13 @@ public String getSourceDatabaseConnectionId() { } /** - * 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 **/ public String getTargetDatabaseConnectionId() { @@ -889,120 +220,28 @@ public String getTargetDatabaseConnectionId() { } /** - * 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 **/ 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 **/ @@ -1011,14 +250,14 @@ public java.util.Date getTimeCreated() { } /** - * 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 **/ @@ -1027,14 +266,14 @@ public java.util.Date getTimeUpdated() { } /** - * 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 **/ @@ -1044,14 +283,12 @@ public java.util.Date getTimeLastMigration() { /** * The current state of the Migration resource. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final MigrationLifecycleStates lifecycleState; /** * The current state of the Migration resource. - * * @return the value **/ public MigrationLifecycleStates getLifecycleState() { @@ -1060,14 +297,12 @@ public MigrationLifecycleStates getLifecycleState() { /** * Additional status related to the execution and current state of the Migration. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final MigrationStatus lifecycleDetails; /** * Additional status related to the execution and current state of the Migration. - * * @return the value **/ public MigrationStatus getLifecycleDetails() { @@ -1075,16 +310,16 @@ 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 **/ @@ -1143,32 +378,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)); @@ -1192,33 +411,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) @@ -1235,28 +437,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 @@ -1265,42 +457,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 323b6faafd..3dfd549da2 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 @@ -6,7 +6,6 @@ /** * Results of a Migration search. Contains MigrationSummary 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationCollection.Builder.class ) @@ -32,14 +31,12 @@ public MigrationCollection(java.util.List items) { 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 **/ @@ -82,14 +79,12 @@ public Builder toBuilder() { /** * 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() { 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 7f00e33c89..6095c18f0a 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 @@ -6,9 +6,8 @@ /** * Possible Migration Database Target types to specify. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationDatabaseTargetTypes { 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 e1909fbf3e..14fc3d8c2e 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 @@ -6,9 +6,8 @@ /** * Possible Migration Database Target types to specify. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationDatabaseTargetTypesUpdate { 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 4e579baf5d..6c12f779e7 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationJobProgressResource.Builder.class ) 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 4726bff360..2e883f2b74 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationJobProgressSummary.Builder.class ) 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 4653da1604..03ef56d1a9 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 @@ -6,9 +6,8 @@ /** * Possible Migration lifecycle states. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationLifecycleStates { 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 f47331b4ce..c6a701022e 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,8 +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 @@ -15,125 +14,29 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = MigrationObjectCollection.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class MigrationObjectCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class MigrationObjectCollection extends com.oracle.bmc.http.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 @@ -150,8 +53,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(); } @@ -166,17 +67,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 cf8f2d759f..9ef22657d5 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 @@ -6,7 +6,6 @@ /** * Migration Object 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationObjectTypeSummary.Builder.class ) @@ -33,14 +32,12 @@ public MigrationObjectTypeSummary(String name) { public static class Builder { /** * Object type name - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * Object type name - * * @param name the value to set * @return this builder **/ @@ -83,14 +80,12 @@ public Builder toBuilder() { /** * Object type name - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * Object type name - * * @return the value **/ public String getName() { 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 686d61db89..8d07084bb3 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 @@ -6,7 +6,6 @@ /** * Results of a Migration Object Type listing. Contains MigrationObjectTypeSummary 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationObjectTypeSummaryCollection.Builder.class ) @@ -33,14 +32,12 @@ public MigrationObjectTypeSummaryCollection(java.util.List items; /** * Items in collection. - * * @param items the value to set * @return this builder **/ @@ -84,14 +81,12 @@ public Builder toBuilder() { /** * 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() { 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 09ab271ec5..a4e3a8385c 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationPhaseCollection.Builder.class ) 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 613917b9b9..de2d9ffef3 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationPhaseSummary.Builder.class ) 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 129e92a2a2..1e1d14660d 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 @@ -6,9 +6,8 @@ /** * Possible Migration status. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationStatus { 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 2b9cd38b08..09a2661813 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,10 +14,25 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MigrationSummary.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class MigrationSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class MigrationSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", @@ -26,11 +40,8 @@ public final class MigrationSummary extends com.oracle.bmc.http.internal.Explici "compartmentId", "type", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", "executingJobId", - "agentId", - "vaultDetails", "timeCreated", "timeUpdated", "timeLastMigration", @@ -40,17 +51,14 @@ public final class MigrationSummary extends com.oracle.bmc.http.internal.Explici "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, @@ -65,11 +73,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; @@ -80,444 +85,14 @@ 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 **/ public String getId() { @@ -525,14 +100,16 @@ public String getId() { } /** - * 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 **/ @@ -541,15 +118,13 @@ public String getDisplayName() { } /** - * 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 **/ public String getCompartmentId() { @@ -557,14 +132,16 @@ public String getCompartmentId() { } /** - * 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 **/ @@ -573,15 +150,13 @@ public MigrationTypes getType() { } /** - * 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 **/ public String getSourceDatabaseConnectionId() { @@ -589,31 +164,13 @@ public String getSourceDatabaseConnectionId() { } /** - * 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 **/ public String getTargetDatabaseConnectionId() { @@ -621,15 +178,13 @@ public String getTargetDatabaseConnectionId() { } /** - * 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 **/ public String getExecutingJobId() { @@ -637,37 +192,14 @@ public String getExecutingJobId() { } /** - * 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 **/ @@ -676,14 +208,14 @@ public java.util.Date getTimeCreated() { } /** - * 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 **/ @@ -692,14 +224,14 @@ public java.util.Date getTimeUpdated() { } /** - * 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 **/ @@ -708,15 +240,13 @@ public java.util.Date getTimeLastMigration() { } /** - * 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 **/ public MigrationLifecycleStates getLifecycleState() { @@ -725,14 +255,12 @@ public MigrationLifecycleStates getLifecycleState() { /** * Additional status related to the execution and current state of the Migration. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final MigrationStatus lifecycleDetails; /** * Additional status related to the execution and current state of the Migration. - * * @return the value **/ public MigrationStatus getLifecycleDetails() { @@ -740,16 +268,16 @@ 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 **/ @@ -813,13 +341,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)); @@ -848,14 +372,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) @@ -882,11 +401,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 @@ -895,8 +409,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 fa4c9ca141..d7456d788d 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 @@ -6,9 +6,8 @@ /** * Supported Migration types. - * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationTypes { Online("ONLINE"), Offline("OFFLINE"), 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/MySqlAdvisorSettings.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/MySqlAdvisorSettings.java index 80eacb916d..6a495a4702 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/MySqlAdvisorSettings.java @@ -5,8 +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 @@ -15,13 +14,15 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdvisorSettings.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlAdvisorSettings.Builder.class +) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AdvisorSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class MySqlAdvisorSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public AdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public MySqlAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -31,14 +32,12 @@ public AdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { 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 **/ @@ -69,8 +68,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 MySqlAdvisorSettings build() { + MySqlAdvisorSettings model = + new MySqlAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -78,7 +78,7 @@ public AdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AdvisorSettings model) { + public Builder copy(MySqlAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -102,14 +102,12 @@ public Builder toBuilder() { /** * 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() { @@ -144,7 +142,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AdvisorSettings("); + 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)); @@ -157,11 +155,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AdvisorSettings)) { + if (!(o instanceof MySqlAdvisorSettings)) { return false; } - AdvisorSettings other = (AdvisorSettings) 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 0000000000..3db7558c23 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlCloneMigrationDetails.java @@ -0,0 +1,192 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..2c71870d8f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataTransferMediumDetails.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) +public class MySqlDataTransferMediumDetails + extends com.oracle.bmc.http.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 { + 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 0000000000..9ad5c8d1eb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObject.java @@ -0,0 +1,218 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDatabaseObject.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlDatabaseObject extends com.oracle.bmc.http.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 0000000000..f3ea4be19f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectSummary.java @@ -0,0 +1,258 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDatabaseObjectSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlDatabaseObjectSummary + extends com.oracle.bmc.http.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 75% 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 b423e5bd86..dbcdeb1a8a 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,17 +14,19 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GoldenGateSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class MySqlGgsDeploymentDetails + extends com.oracle.bmc.http.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; } @@ -33,12 +34,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; } @@ -72,9 +73,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); } @@ -82,9 +84,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") @@ -149,9 +151,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(")"); @@ -163,12 +165,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); @@ -178,7 +180,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 0000000000..923cd60308 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlInitialLoadSettings.java @@ -0,0 +1,417 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlInitialLoadSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlInitialLoadSettings + extends com.oracle.bmc.http.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 0000000000..d9eb8a668f --- /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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = 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.internal.ExplicitlySetFilter.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 0000000000..d34bd92afa --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationObjectCollection.java @@ -0,0 +1,194 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..c7960bee32 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationSummary.java @@ -0,0 +1,327 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 9c9fdd28b7..4455f58608 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,8 +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 @@ -15,9 +14,9 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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, @@ -25,7 +24,8 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ObjectStorageDataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class MySqlObjectStorageDataTransferMediumDetails + extends MySqlDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -41,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); } @@ -51,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()); } @@ -71,7 +71,7 @@ public Builder toBuilder() { } @Deprecated - public ObjectStorageDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket) { + public MySqlObjectStorageDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket) { super(); this.objectStorageBucket = objectStorageBucket; } @@ -95,7 +95,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(")"); @@ -107,11 +107,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 0000000000..301b03a569 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnection.java @@ -0,0 +1,916 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = 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.internal.ExplicitlySetFilter.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 { + 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 { + 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 { + 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 0000000000..514301f91d --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnectionSummary.java @@ -0,0 +1,674 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 c7ead48315..178e7120b6 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 @@ -15,32 +14,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DatabaseLinkDetails.Builder.class -) +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DatabaseLinkDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class NameValuePair extends com.oracle.bmc.http.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 **/ @@ -49,21 +44,28 @@ 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); } @@ -71,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,26 +96,31 @@ public Builder toBuilder() { } /** - * 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 **/ 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 @@ -128,10 +135,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(); } @@ -141,13 +148,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); } @@ -156,7 +163,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 6774d4d261..906f11bd27 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NonADBAutoCreateTablespaceDetails.Builder.class ) 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 fe354c6b36..35760a8a63 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NonADBRemapTablespaceDetails.Builder.class ) 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 73a52e38c9..11eb976821 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 @@ -5,10 +5,9 @@ package com.oracle.bmc.databasemigration.model; /** - * exclude/include/ status. - * + * exclude/include status. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ObjectStatus { 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 f1f69c3d78..e09918ad21 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ObjectStoreBucket.Builder.class ) @@ -34,14 +34,12 @@ public ObjectStoreBucket(String namespaceName, String bucketName) { public static class Builder { /** * Namespace name of the object store bucket. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") private String namespaceName; /** * Namespace name of the object store bucket. - * * @param namespaceName the value to set * @return this builder **/ @@ -52,14 +50,12 @@ public Builder namespaceName(String namespaceName) { } /** * Bucket name. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private String bucketName; /** * Bucket name. - * * @param bucketName the value to set * @return this builder **/ @@ -105,14 +101,12 @@ public Builder toBuilder() { /** * Namespace name of the object store bucket. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") private final String namespaceName; /** * Namespace name of the object store bucket. - * * @return the value **/ public String getNamespaceName() { @@ -121,14 +115,12 @@ public String getNamespaceName() { /** * Bucket name. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private final String bucketName; /** * Bucket name. - * * @return the value **/ public String getBucketName() { 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 a56f8772ad..fb24c4c5a5 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 @@ -6,7 +6,6 @@ /** * Optional dump transfer details for OCI-CLI-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = OciCliDumpTransferDetails.Builder.class ) @@ -38,14 +37,12 @@ public Builder walletLocation(String walletLocation) { } /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private String ociHome; /** * Path to the OCI CLI installation in the node. - * * @param ociHome the value to set * @return this builder **/ @@ -98,14 +95,12 @@ public OciCliDumpTransferDetails(String walletLocation, String ociHome) { /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private final String ociHome; /** * Path to the OCI CLI installation in the node. - * * @return the value **/ public String getOciHome() { 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 a52ee4e86d..c0a96d9b19 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 @@ -8,23 +8,25 @@ * Possible ODMS Job Phases. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OdmsJobPhases { 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 6f99171b6c..39ef96920b 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 @@ -8,7 +8,7 @@ * Possible ODMS Job Phase actions. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OdmsPhaseActions { 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 920b3b8f43..c675e5fac8 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 @@ -8,7 +8,7 @@ * Possible operation status. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OperationStatus { 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 f73c728469..5e7e1d244f 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 @@ -8,10 +8,8 @@ * Possible operation types. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OperationTypes { - 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/OracleAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAdvisorSettings.java new file mode 100644 index 0000000000..b4cfe08e4d --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAdvisorSettings.java @@ -0,0 +1,178 @@ +/** + * 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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleAdvisorSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleAdvisorSettings + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) + public OracleAdvisorSettings(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 OracleAdvisorSettings build() { + OracleAdvisorSettings model = + new OracleAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleAdvisorSettings 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("OracleAdvisorSettings("); + 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 OracleAdvisorSettings)) { + return false; + } + + OracleAdvisorSettings other = (OracleAdvisorSettings) 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/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 2fab116476..8ecc698928 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,9 +16,9 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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, @@ -26,19 +26,17 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * S3 bucket name. - * * @param name the value to set * @return this builder **/ @@ -122,9 +120,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, @@ -137,7 +135,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()); } @@ -169,7 +167,7 @@ public Builder toBuilder() { } @Deprecated - public AwsS3DataTransferMediumDetails( + public OracleAwsS3DataTransferMediumDetails( String name, String region, String accessKeyId, @@ -185,14 +183,12 @@ public AwsS3DataTransferMediumDetails( /** * S3 bucket name. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * S3 bucket name. - * * @return the value **/ public String getName() { @@ -274,7 +270,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)); @@ -290,11 +286,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 0000000000..127530a8a1 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..ac272c64bd --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnection.java @@ -0,0 +1,783 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = 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.internal.ExplicitlySetFilter.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 { + 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 0000000000..2e13ffbdc5 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnectionSummary.java @@ -0,0 +1,471 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 85% 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 9670422bf1..0ed9339bc9 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,8 +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 @@ -15,37 +14,37 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type", - defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public class DataTransferMediumDetailsV2 +public class OracleDataTransferMediumDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected DataTransferMediumDetailsV2() { + protected OracleDataTransferMediumDetails() { super(); } @@ -61,7 +60,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(); @@ -72,11 +71,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); } @@ -89,8 +88,7 @@ public int hashCode() { } /** - * Type of the data transfer medium to use for the datapump - * + * Type of the data transfer medium to use. **/ public enum Type { Dblink("DBLINK"), 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 89% 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 dea9d61ad0..ebadc1f22b 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,10 +14,12 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DatabaseObject.Builder.class) +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DatabaseObject extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class OracleDatabaseObject extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "owner", @@ -26,7 +27,7 @@ public final class DatabaseObject extends com.oracle.bmc.http.internal.Explicitl "type", "isOmitExcludedTableFromReplication" }) - public DatabaseObject( + public OracleDatabaseObject( String owner, String objectName, String type, @@ -42,14 +43,12 @@ public DatabaseObject( public static class Builder { /** * Owner of the object (regular expression is allowed) - * **/ @com.fasterxml.jackson.annotation.JsonProperty("owner") private String owner; /** * Owner of the object (regular expression is allowed) - * * @param owner the value to set * @return this builder **/ @@ -60,14 +59,12 @@ public Builder owner(String owner) { } /** * 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 **/ @@ -97,14 +94,16 @@ public Builder type(String type) { return this; } /** - * 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. + * Whether an excluded table should be omitted from replication. Only valid for database 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. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * that have are of type TABLE and object status EXCLUDE. * * @param isOmitExcludedTableFromReplication the value to set * @return this builder @@ -119,9 +118,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, @@ -133,7 +132,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()); } @@ -164,14 +163,12 @@ public Builder toBuilder() { /** * Owner of the object (regular expression is allowed) - * **/ @com.fasterxml.jackson.annotation.JsonProperty("owner") private final String owner; /** * Owner of the object (regular expression is allowed) - * * @return the value **/ public String getOwner() { @@ -180,14 +177,12 @@ public String getOwner() { /** * 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() { @@ -213,14 +208,16 @@ 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. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * 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. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * that have are of type TABLE and object status EXCLUDE. * * @return the value **/ @@ -240,7 +237,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)); @@ -256,11 +253,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 89% 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 8e965e6fee..3098f06b4f 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 @@ -6,7 +6,6 @@ /** * 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 @@ -15,47 +14,61 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class MigrationObjectSummary +public final class OracleDatabaseObjectSummary extends com.oracle.bmc.http.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; /** * Owner of the object (regular expression is allowed) - * * @param owner the value to set * @return this builder **/ @@ -66,14 +79,12 @@ public Builder owner(String owner) { } /** * 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 **/ @@ -103,32 +114,16 @@ public Builder type(String 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. + * Whether an excluded table should be omitted from replication. Only valid for database 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 object status EXCLUDE. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * that have are of type TABLE and object status EXCLUDE. * * @param isOmitExcludedTableFromReplication the value to set * @return this builder @@ -143,13 +138,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); @@ -158,7 +153,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()); } @@ -168,9 +166,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()); @@ -190,16 +185,28 @@ 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; /** * Owner of the object (regular expression is allowed) - * * @return the value **/ public String getOwner() { @@ -208,14 +215,12 @@ public String getOwner() { /** * 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() { @@ -241,30 +246,16 @@ public String getType() { } /** - * 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. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * 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 object status EXCLUDE. + * Whether an excluded table should be omitted from replication. Only valid for database objects + * that have are of type TABLE and object status EXCLUDE. * * @return the value **/ @@ -284,12 +275,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(")"); @@ -301,15 +292,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) @@ -320,10 +311,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 83% 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 95ed795bdf..dcc7461c6e 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 @@ -6,7 +6,6 @@ /** * 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 set to {@code null}. This is done in @@ -15,9 +14,9 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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, @@ -25,7 +24,7 @@ property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DbLinkDataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class OracleDbLinkDataTransferMediumDetails extends OracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -38,14 +37,16 @@ public Builder objectStorageBucket(ObjectStoreBucket 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. + * Name of database link from OCI database to on-premise database. ODMS will create link, + * if the link does not already exist. * **/ @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. + * Name of database link from OCI database to on-premise database. ODMS will create link, + * if the link does not already exist. * * @param name the value to set * @return this builder @@ -59,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); } @@ -69,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()); } @@ -92,7 +93,8 @@ public Builder toBuilder() { } @Deprecated - public DbLinkDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket, String name) { + public OracleDbLinkDataTransferMediumDetails( + ObjectStoreBucket objectStorageBucket, String name) { super(); this.objectStorageBucket = objectStorageBucket; this.name = name; @@ -106,14 +108,16 @@ public ObjectStoreBucket getObjectStorageBucket() { } /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. + * Name of database link from OCI database to on-premise database. ODMS will create link, + * if the link does not already exist. * **/ @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. + * Name of database link from OCI database to on-premise database. ODMS will create link, + * if the link does not already exist. * * @return the value **/ @@ -133,7 +137,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)); @@ -146,11 +150,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 0000000000..f6f1694774 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleGgsDeploymentDetails.java @@ -0,0 +1,219 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleGgsDeploymentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleGgsDeploymentDetails + extends com.oracle.bmc.http.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 77% 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 ba59e49b47..d6418f18e9 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 @@ -6,7 +6,6 @@ /** * Optional settings for Data Pump Export and Import jobs - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,57 +14,40 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataPumpSettings.Builder.class) +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DataPumpSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class OracleInitialLoadSettings + extends com.oracle.bmc.http.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; @@ -75,26 +57,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; @@ -122,19 +84,53 @@ 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); } @@ -142,16 +138,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()); } @@ -161,6 +151,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,24 +172,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; @@ -201,24 +179,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 +200,36 @@ 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); @@ -252,14 +242,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(); } @@ -269,17 +259,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); } @@ -287,15 +277,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()); @@ -309,6 +295,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 0000000000..e04f17af15 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java @@ -0,0 +1,541 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = 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.internal.ExplicitlySetFilter.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 0000000000..e19a231e3f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationObjectCollection.java @@ -0,0 +1,194 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..4a76c35968 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java @@ -0,0 +1,375 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 70% 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 53d6aaf56d..90c027d452 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,8 +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 @@ -15,27 +14,29 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DumpTransferDetails extends com.oracle.bmc.http.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; @@ -75,10 +76,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); } @@ -86,7 +90,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()); } @@ -111,6 +118,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; @@ -153,9 +180,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)); @@ -168,12 +196,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) @@ -183,7 +212,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 = @@ -191,7 +225,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 0000000000..b5b769c2f9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleObjectStorageDataTransferMediumDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 95c207893f..373637a51d 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PhaseExtractEntry.Builder.class ) 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 dea5a2bb45..85ddcf5536 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 @@ -8,7 +8,7 @@ * Job Phase extract type. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum PhaseExtractTypes { 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 451d6f05d5..ac76d87b57 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class PhaseStatus extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 0000000000..6286cd6e44 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrimaryKeyCompatibility.java @@ -0,0 +1,61 @@ +/** + * 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. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum PrimaryKeyCompatibility { + 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 e448c7aa32..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrivateEndpointDetails.java +++ /dev/null @@ -1,276 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class PrivateEndpointDetails - extends com.oracle.bmc.http.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 010efa59d5..6a928f2caa 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 @@ -8,7 +8,7 @@ * Object exclusion reason category. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ReasonKeywords { 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 99254d2329..0c83796e8e 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 @@ -6,7 +6,6 @@ /** * Parameters for Replicat 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 @@ -15,27 +14,15 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Replicat extends com.oracle.bmc.http.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 = "") @@ -58,71 +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 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); } @@ -134,15 +62,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; } } @@ -174,54 +93,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); @@ -237,9 +108,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(); } @@ -255,9 +123,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); } @@ -270,19 +135,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 7745a7322e..f4e8e626c6 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 @@ -8,7 +8,7 @@ * GoldenGate Replicat performance profile * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ReplicatPerformanceProfile { 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 9532f23973..fcd33da1a3 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class ResultError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 299c2a8508..948aa59e06 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 @@ -8,7 +8,7 @@ * Type of Result. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ResultType { 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 a98e0d4833..5bc5fa2d50 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class ResumeJobDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 1d118869c9..d08d842477 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 @@ -8,7 +8,7 @@ * Sort orders. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum SortOrders { 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 7773ec3951..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SshDetails.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class SshDetails extends com.oracle.bmc.http.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 21013e8424..f237126c49 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 @@ -6,7 +6,6 @@ /** * Parameters to specify to a Migration job operation. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StartMigrationDetails.Builder.class ) 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 40ffc6f575..0dd99c6255 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, 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 0000000000..c6f44b873e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TechnologyType.java @@ -0,0 +1,52 @@ +/** + * 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. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum TechnologyType { + 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 2884f80a09..5604898d97 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UnsupportedDatabaseObject.Builder.class ) 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 526a0eed46..038236017d 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBDedicatedAutoCreateTablespaceDetails.Builder.class ) @@ -30,14 +30,16 @@ public final class UpdateADBDedicatedAutoCreateTablespaceDetails @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 @@ -48,14 +50,14 @@ public Builder isAutoCreate(Boolean 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 @@ -66,14 +68,16 @@ public Builder isBigFile(Boolean 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 @@ -161,14 +165,16 @@ public UpdateADBDedicatedAutoCreateTablespaceDetails( } /** - * 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 **/ @@ -177,14 +183,14 @@ public Boolean getIsAutoCreate() { } /** - * 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 **/ @@ -193,14 +199,16 @@ public Boolean getIsBigFile() { } /** - * 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 e9c4bea4ca..660198cf32 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBDedicatedRemapTargetTablespaceDetails.Builder.class ) @@ -30,14 +30,14 @@ 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 @@ -87,14 +87,14 @@ public UpdateADBDedicatedRemapTargetTablespaceDetails(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. * **/ @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 a0467fa354..20b49e0344 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,7 @@ 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBServerlesTablespaceDetails.Builder.class ) 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 566e44e79c..5e182ec180 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateAdminCredentials.Builder.class ) 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 48044e3a1f..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectDescriptor.java +++ /dev/null @@ -1,289 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateConnectDescriptor - extends com.oracle.bmc.http.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 19ef1d691b..5cc045379e 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,8 +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 @@ -15,360 +14,79 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateConnectionDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "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.internal.ExplicitlySetFilter.NAME) -public final class UpdateConnectionDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class UpdateConnectionDetails extends com.oracle.bmc.http.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; - } - - @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; - } + this.username = username; + this.password = password; + this.replicationUsername = replicationUsername; + this.replicationPassword = replicationPassword; } /** - * 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 **/ @@ -377,159 +95,179 @@ public String getDisplayName() { } /** - * The OCID of the cloud database. + * A user-friendly description. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + @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. - * + * OCI resource ID. **/ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private final String tlsKeystore; + @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; + public String getVaultId() { + return vaultId; } - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final UpdateSshDetails sshDetails; - - public UpdateSshDetails getSshDetails() { - return sshDetails; - } - - @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; + /** + * The username (credential) used when creating or updating this resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; - public UpdateVaultDetails getVaultDetails() { - return vaultDetails; + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + **/ + public String getUsername() { + return 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 password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + @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"}}} + * The username (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + @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. + * The password (credential) used when creating or updating this resource. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + @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 @@ -547,19 +285,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(); } @@ -575,20 +311,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); } @@ -597,31 +330,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 9076a65fb2..be61fe6aa1 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 @@ -6,7 +6,6 @@ /** * Optional properties for Curl-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateCurlTransferDetails.Builder.class ) 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 931d41cdbf..a546aaf24a 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,7 +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-uat.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. * If an empty object is specified, the stored Data Pump Parameter details will be removed. * *
@@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDataPumpParameters.Builder.class ) @@ -51,15 +51,13 @@ 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 **/ @@ -70,14 +68,12 @@ public Builder isCluster(Boolean isCluster) { } /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @param estimate the value to set * @return this builder **/ @@ -105,15 +101,13 @@ public Builder tableExistsAction(DataPumpTableExistsAction 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 **/ @@ -145,14 +139,12 @@ public Builder importParallelismDegree(Integer importParallelismDegree) { } /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @param exportParallelismDegree the value to set * @return this builder **/ @@ -216,15 +208,13 @@ public Builder toBuilder() { } /** - * 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 **/ public Boolean getIsCluster() { @@ -233,14 +223,12 @@ public Boolean getIsCluster() { /** * Estimate size of dumps that will be generated. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("estimate") private final DataPumpEstimate estimate; /** * Estimate size of dumps that will be generated. - * * @return the value **/ public DataPumpEstimate getEstimate() { @@ -264,15 +252,13 @@ public DataPumpTableExistsAction getTableExistsAction() { } /** - * 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 **/ public java.util.List getExcludeParameters() { @@ -299,14 +285,12 @@ public Integer getImportParallelismDegree() { /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("exportParallelismDegree") private final Integer exportParallelismDegree; /** * Maximum number of worker processes that can be used for a Data Pump Export job. - * * @return the value **/ public Integer getExportParallelismDegree() { 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 ba24f9c99b..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataTransferMediumDetails.java +++ /dev/null @@ -1,189 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateDataTransferMediumDetails - extends com.oracle.bmc.http.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 ff9d8901f6..6dabc6bb54 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 @@ -18,7 +18,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDirectoryObject.Builder.class ) @@ -37,14 +37,12 @@ public UpdateDirectoryObject(String name, String path) { public static class Builder { /** * Name of directory object in database - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * Name of directory object in database - * * @param name the value to set * @return this builder **/ @@ -55,14 +53,12 @@ public Builder name(String name) { } /** * Absolute path of directory on database server - * **/ @com.fasterxml.jackson.annotation.JsonProperty("path") private String path; /** * Absolute path of directory on database server - * * @param path the value to set * @return this builder **/ @@ -108,14 +104,12 @@ public Builder toBuilder() { /** * Name of directory object in database - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * Name of directory object in database - * * @return the value **/ public String getName() { @@ -124,14 +118,12 @@ public String getName() { /** * Absolute path of directory on database server - * **/ @com.fasterxml.jackson.annotation.JsonProperty("path") private final String path; /** * Absolute path of directory on database server - * * @return the value **/ public String getPath() { 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 666864d558..f9b79bfb0f 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class UpdateExtract extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 481756f2f1..0000000000 --- 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateGoldenGateDetails - extends com.oracle.bmc.http.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 2ca621d5ac..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHub.java +++ /dev/null @@ -1,426 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateGoldenGateHub extends com.oracle.bmc.http.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 0000000000..5c927f7747 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHubDetails.java @@ -0,0 +1,389 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateGoldenGateHubDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateGoldenGateHubDetails + extends com.oracle.bmc.http.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 95521dc116..0000000000 --- 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateGoldenGateServiceDetails - extends com.oracle.bmc.http.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 91113bfefc..6b51efc02b 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,8 +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 set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, @@ -44,14 +43,12 @@ protected UpdateHostDumpTransferDetails(String walletLocation) { /** * Directory path to OCI SSL wallet location on Db server node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") private final String walletLocation; /** * Directory path to OCI SSL wallet location on Db server node. - * * @return the value **/ public String getWalletLocation() { @@ -103,8 +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 { 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 41edbd092a..3f8593b4b3 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class UpdateJobDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -52,16 +52,16 @@ 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 @@ -148,16 +148,16 @@ 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 5b49bfabd2..52cf2399f4 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,8 +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 @@ -15,457 +14,82 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateMigrationDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) -public final class UpdateMigrationDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class UpdateMigrationDetails extends com.oracle.bmc.http.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 **/ @@ -474,14 +98,16 @@ public MigrationTypes getType() { } /** - * 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 **/ @@ -490,31 +116,13 @@ public String getDisplayName() { } /** - * 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 **/ public String getSourceDatabaseConnectionId() { @@ -522,144 +130,30 @@ public String getSourceDatabaseConnectionId() { } /** - * 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 **/ 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 **/ @@ -699,28 +193,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(")"); @@ -737,29 +216,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); @@ -769,60 +232,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 0000000000..a52c3fc75f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAdvisorSettings.java @@ -0,0 +1,178 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlAdvisorSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMySqlAdvisorSettings + extends com.oracle.bmc.http.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 0000000000..2bd89b0f32 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlDataTransferMediumDetails.java @@ -0,0 +1,112 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) +public class UpdateMySqlDataTransferMediumDetails + extends com.oracle.bmc.http.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 { + 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 0000000000..fee325cb4f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlGgsDeploymentDetails.java @@ -0,0 +1,166 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlGgsDeploymentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMySqlGgsDeploymentDetails + extends com.oracle.bmc.http.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 0000000000..2dbc0fc571 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlInitialLoadSettings.java @@ -0,0 +1,417 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlInitialLoadSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateMySqlInitialLoadSettings + extends com.oracle.bmc.http.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 0000000000..89060a0a9a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlMigrationDetails.java @@ -0,0 +1,345 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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/UpdateMySqlObjectStorageDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlObjectStorageDataTransferMediumDetails.java new file mode 100644 index 0000000000..f8157e99ba --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlObjectStorageDataTransferMediumDetails.java @@ -0,0 +1,132 @@ +/** + * 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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.NAME) +public final class UpdateMySqlObjectStorageDataTransferMediumDetails + extends UpdateMySqlDataTransferMediumDetails { + @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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlObjectStorageDataTransferMediumDetails build() { + UpdateMySqlObjectStorageDataTransferMediumDetails model = + new UpdateMySqlObjectStorageDataTransferMediumDetails(this.objectStorageBucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlObjectStorageDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateMySqlObjectStorageDataTransferMediumDetails( + UpdateObjectStoreBucket objectStorageBucket) { + super(); + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final UpdateObjectStoreBucket objectStorageBucket; + + public UpdateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlObjectStorageDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlObjectStorageDataTransferMediumDetails)) { + return false; + } + + 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 = 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/UpdateMysqlConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMysqlConnectionDetails.java new file mode 100644 index 0000000000..3202fcb68b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMysqlConnectionDetails.java @@ -0,0 +1,749 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 6edb0823ce..6ca0e8fea9 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateNonADBAutoCreateTablespaceDetails.Builder.class ) 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 dec8fb1b4e..203f8608e9 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateNonADBRemapTablespaceDetails.Builder.class ) 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 0bc3e9f305..c435c7e619 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateObjectStoreBucket.Builder.class ) 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 791f70b0fc..30669dce29 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 @@ -6,7 +6,6 @@ /** * Optional dump transfer details for OCI-CLI-based dump transfer in source or target host. - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateOciCliDumpTransferDetails.Builder.class ) @@ -38,14 +37,12 @@ public Builder walletLocation(String walletLocation) { } /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private String ociHome; /** * Path to the OCI CLI installation in the node. - * * @param ociHome the value to set * @return this builder **/ @@ -98,14 +95,12 @@ public UpdateOciCliDumpTransferDetails(String walletLocation, String ociHome) { /** * Path to the OCI CLI installation in the node. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("ociHome") private final String ociHome; /** * Path to the OCI CLI installation in the node. - * * @return the value **/ public String getOciHome() { 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 0000000000..f564feb87b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAdvisorSettings.java @@ -0,0 +1,178 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleAdvisorSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOracleAdvisorSettings + extends com.oracle.bmc.http.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 24d7cea727..23bdd461f0 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,35 +16,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateAwsS3Details extends com.oracle.bmc.http.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. - * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * S3 bucket name. - * * @param name the value to set * @return this builder **/ @@ -116,13 +109,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); } @@ -130,7 +136,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()); } @@ -143,6 +149,9 @@ public Builder copy(UpdateAwsS3Details model) { if (model.wasPropertyExplicitlySet("secretAccessKey")) { this.secretAccessKey(model.getSecretAccessKey()); } + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } return this; } } @@ -158,16 +167,29 @@ 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; /** * S3 bucket name. - * * @return the value **/ public String getName() { @@ -230,6 +252,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); @@ -242,12 +271,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(); } @@ -257,29 +287,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 0000000000..623003ab20 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleConnectionDetails.java @@ -0,0 +1,591 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 0000000000..6a9f12e9c9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDataTransferMediumDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = 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.internal.ExplicitlySetFilter.NAME) +public class UpdateOracleDataTransferMediumDetails + extends com.oracle.bmc.http.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 { + 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/UpdateOracleDbLinkDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDbLinkDataTransferMediumDetails.java new file mode 100644 index 0000000000..9b657abe70 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDbLinkDataTransferMediumDetails.java @@ -0,0 +1,178 @@ +/** + * 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 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 set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.NAME) +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. + * + **/ + @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. + * + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleDbLinkDataTransferMediumDetails build() { + UpdateOracleDbLinkDataTransferMediumDetails model = + new UpdateOracleDbLinkDataTransferMediumDetails( + this.objectStorageBucket, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleDbLinkDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @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. + * + **/ + @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. + * + * @return the value + **/ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleDbLinkDataTransferMediumDetails)) { + return false; + } + + 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 = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.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 90% 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 b4bf5e343a..0fe4fe2114 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 @@ -6,8 +6,6 @@ /** * Optional settings for Oracle GoldenGate processes - * If an empty object is specified, the stored GoldenGate Settings 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 @@ -16,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateGoldenGateSettings +public final class UpdateOracleGgsDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"extract", "replicat", "acceptableLag"}) - public UpdateGoldenGateSettings( + public UpdateOracleGgsDeploymentDetails( UpdateExtract extract, UpdateReplicat replicat, Integer acceptableLag) { super(); this.extract = extract; @@ -75,9 +73,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); } @@ -85,7 +84,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()); } @@ -152,7 +151,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)); @@ -166,11 +165,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 3e5ade5f06..5e1fc57807 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 @@ -6,7 +6,6 @@ /** * Optional settings for Data Pump Export and Import jobs - * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,60 +14,40 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateDataPumpSettings +public final class UpdateOracleInitialLoadSettings extends com.oracle.bmc.http.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; @@ -78,28 +57,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; @@ -127,19 +84,53 @@ 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); } @@ -147,16 +138,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()); } @@ -166,6 +151,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,24 +172,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; @@ -206,26 +179,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; @@ -247,6 +200,36 @@ 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); @@ -259,14 +242,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(); } @@ -276,17 +259,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); } @@ -294,15 +277,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()); @@ -316,6 +295,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 0000000000..d2d1da06e4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java @@ -0,0 +1,393 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 4a7c08ff88..f89e1fb8da 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,8 +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 @@ -15,41 +14,43 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDumpTransferDetails - extends com.oracle.bmc.http.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; @@ -76,10 +77,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); } @@ -87,7 +91,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()); } @@ -112,17 +119,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; } @@ -154,9 +181,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)); @@ -169,12 +197,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) @@ -184,7 +214,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 = @@ -192,7 +227,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 0000000000..a5beb35b73 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleObjectStorageDataTransferMediumDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = 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.internal.ExplicitlySetFilter.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 5aaa855a32..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdatePrivateEndpoint.java +++ /dev/null @@ -1,235 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdatePrivateEndpoint - extends com.oracle.bmc.http.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 f217012678..22c930b91e 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,27 +16,15 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class UpdateReplicat extends com.oracle.bmc.http.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 = "") @@ -59,71 +47,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); } @@ -135,15 +64,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; } } @@ -175,54 +95,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); @@ -238,9 +110,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(); } @@ -256,9 +125,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); } @@ -271,19 +137,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 cb9ab9bde3..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateSshDetails.java +++ /dev/null @@ -1,262 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateSshDetails extends com.oracle.bmc.http.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 3b711d1b38..66cd164f22 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateTargetDefaultsAutoCreateTablespaceDetails.Builder.class ) 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 a021be479d..20360d18ab 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateTargetDefaultsRemapTablespaceDetails.Builder.class ) 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 9918051ee4..f749941b78 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 @@ -6,7 +6,6 @@ /** * Migration tablespace 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 @@ -15,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, 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 44425a440d..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateVaultDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateVaultDetails extends com.oracle.bmc.http.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 6289559ef5..0000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/VaultDetails.java +++ /dev/null @@ -1,222 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class VaultDetails extends com.oracle.bmc.http.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 e27a2da9d4..bce018a940 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 c4dc0b49ef..85a16f0d1f 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestCollection.Builder.class ) 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 ea7f541fbe..e186b1f712 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 22cb900200..57f5d5d467 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class ) 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 5ffe69ee59..372ddc92f7 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class ) 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 0b2acf446f..0a55d68157 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class ) 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 72c8db37a1..1c1038bf5b 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class ) 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 83cebd98e6..28577d7c32 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummary.Builder.class ) 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 5ecca28d0a..ac3a12da1e 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use AbortJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AbortJobRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 de722962fd..57694a3093 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use AddMigrationObjectsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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/ChangeConnectionCompartmentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeConnectionCompartmentRequest.java index ad5a617c3d..6c6509ceae 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 @@ -8,20 +8,18 @@ /** * Example: Click here to see how to use ChangeConnectionCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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; @@ -118,14 +116,12 @@ public static class Builder 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 01fbc27b22..88abf57d45 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ChangeMigrationCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 b202a1d3c1..f506c221c1 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CloneMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 69997ea2ef..406fa386f7 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 @@ -8,19 +8,17 @@ /** * Example: Click here to see how to use ConnectionDiagnosticsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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; @@ -91,14 +89,12 @@ public static class Builder 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 658fc978f6..b2102cedad 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateConnectionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 bd0414e067..79de67bd91 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 @@ -8,20 +8,18 @@ /** * Example: Click here to see how to use CreateMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateMigrationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.CreateMigrationDetails> { /** * Migration properties. - * */ private com.oracle.bmc.databasemigration.model.CreateMigrationDetails createMigrationDetails; /** * Migration properties. - * */ public com.oracle.bmc.databasemigration.model.CreateMigrationDetails getCreateMigrationDetails() { @@ -84,14 +82,12 @@ public static class Builder /** * Migration properties. - * */ private com.oracle.bmc.databasemigration.model.CreateMigrationDetails createMigrationDetails = null; /** * Migration properties. - * * @param createMigrationDetails the value to set * @return this builder instance */ 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 dc3eac6e28..6c9c2ace11 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 @@ -8,18 +8,16 @@ /** * Example: Click here to see how to use DeleteConnectionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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; @@ -69,14 +67,12 @@ public static class Builder 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 e8ca0b99c1..f85781f1d0 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use DeleteJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteJobRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 58e80f9b32..8e33e11cc6 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use DeleteMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 0865f553ca..e1c1a6c2d4 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use EvaluateMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class EvaluateMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 2677f7d48a..5e1dcb0f3d 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetAdvisorReportRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetAdvisorReportRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 b0b9fe1b21..68af90db00 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 @@ -8,18 +8,16 @@ /** * Example: Click here to see how to use GetConnectionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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; @@ -48,14 +46,12 @@ public static class Builder 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 7f47521e86..d44b0a5292 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetJobOutputContentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobOutputContentRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 31d9cb43dd..86d131c0d8 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 2b4c0feb74..539385c226 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 7b460dd286..897f5289fd 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetWorkRequestRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 986cd3eaef..a9d3e92789 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListConnectionsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListConnectionsRequest extends com.oracle.bmc.requests.BmcRequest { /** @@ -39,6 +39,41 @@ 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. * @@ -201,6 +236,75 @@ 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. * @@ -336,6 +440,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()); @@ -376,6 +483,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; @@ -383,7 +493,7 @@ 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); } } @@ -395,6 +505,9 @@ public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) .opcRequestId(opcRequestId) + .technologyType(technologyType) + .connectionType(connectionType) + .sourceConnectionId(sourceConnectionId) .displayName(displayName) .limit(limit) .page(page) @@ -418,6 +531,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)); @@ -441,6 +557,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) @@ -457,6 +576,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 de6b5f84d2..0a6cc0a1f0 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListExcludedObjectsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListExcludedObjectsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 7078c5666e..4f6ae40253 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListJobOutputsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobOutputsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 e62006defa..a23ef7cf39 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListJobsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 15cc53e9db..5ff5a16c28 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 @@ -8,10 +8,21 @@ /** * Example: Click here to see how to use ListMigrationObjectTypesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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. @@ -126,6 +137,22 @@ public static class Builder 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. @@ -243,6 +270,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()); @@ -280,13 +308,14 @@ 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); } } @@ -296,6 +325,7 @@ public ListMigrationObjectTypesRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() + .connectionType(connectionType) .opcRequestId(opcRequestId) .sortBy(sortBy) .sortOrder(sortOrder) @@ -316,6 +346,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)); @@ -336,6 +367,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) @@ -347,6 +379,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 b4c13306d5..2322f849a6 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListMigrationObjectsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 77b477e4c0..f9cb6c5a56 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListMigrationsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 6955bbe534..fe3545b3da 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestErrorsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 c8b1cd7b0a..ee9ce14f58 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestLogsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 6dae696bd6..2b6929cceb 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 64179cc83a..13b4a4e44d 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use RemoveMigrationObjectsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 170173c849..9daf6387c0 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ResumeJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 75a0560ea7..6abe56d8a5 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use RetrieveSupportedPhasesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 71844c8e62..17761c5fb4 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use StartMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 03a61a3cbd..7f9604ba8d 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 @@ -8,20 +8,18 @@ /** * Example: Click here to see how to use UpdateConnectionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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; @@ -96,14 +94,12 @@ public static class Builder 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 e19d2cc39b..002ac173fe 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use UpdateJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 50633839f7..46d6687731 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use UpdateMigrationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 f9a3b0df82..567c4d239d 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 ada834dddf..773095aceb 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 7f8a652fd5..80317d640c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 5dbc0db95e..4dc3a0479e 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 938eeba540..33d83045c8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 c3651a83a0..e24a5a8fa8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 7daa665fa2..f51212e729 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 5d228a0f8b..6e176b5567 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 3b6c72d058..dd91f28327 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 d2685c3c20..b42f136329 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 0500891d3b..43f159a7cf 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 c0c7b916da..896e70fce8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 769af5f52c..0bc7450cfd 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 8b91b3a1de..a6860a5440 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 fa6d919c8e..734f000e9c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 536e235b75..4604e81022 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 1efbb984d2..0cc18428e1 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 d03986dcba..9cd1897e61 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 cf3efd5b96..91223ddae7 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 8b7ff9a77f..edf7642e5b 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 58fe1ddb85..5fe8ee7b60 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 07175f4d2b..4e288250b5 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 3825179012..7e15060db4 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 ad8a2a8925..dcdc5242c4 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 550edc4620..0d6313e320 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 9d72ca84fc..1870297fc9 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 response, 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 243c3122e8..14e4fbb56a 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 response, 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 cd0c16fb27..990f2bdfe1 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 response, 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 8416f9ca7b..98705ed424 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 76ee7fd97a..aa2f6c71b6 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 e8affb1e2c..40ab7d567e 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 cda0b0066e..b6355aebb9 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 019edf7a19..60cfed3d41 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 a81f282a03..3bbbe23f3d 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 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 3fb73acddb..eca3c9d3cb 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.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 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index caf10115c1..6281995656 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-databasetools @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 3dc5c5ca2a..bef0e283b9 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-datacatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 64f710f4fe..7f90acfcf7 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-dataflow @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index e560b17612..c14c0d9d66 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-dataintegration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index e5127aadaf..e4733c71f3 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 73536bba72..22482ab1ee 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index ecb48c12e1..b29d143af9 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-datasafe @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index edac4e8f60..a5b71ebeec 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-datascience @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml new file mode 100644 index 0000000000..98424a537d --- /dev/null +++ b/bmc-demandsignal/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 2.73.0 + ../pom.xml + + oci-java-sdk-demandsignal + Oracle Cloud Infrastructure SDK - Demand Signal + This project contains the SDK used for Oracle Cloud Infrastructure Demand Signal + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 2.73.0 + + + \ No newline at end of file diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignal.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignal.java new file mode 100644 index 0000000000..883423e305 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignal.java @@ -0,0 +1,166 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; + +/** + * Use the OCI Control Center Demand Signal API to manage Demand Signals. + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public interface OccDemandSignal extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Moves a OccDemandSignal into a different compartment within the same tenancy. For information about moving resources between + * compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeOccDemandSignalCompartment API. + */ + ChangeOccDemandSignalCompartmentResponse changeOccDemandSignalCompartment( + ChangeOccDemandSignalCompartmentRequest request); + + /** + * Creates a OccDemandSignal. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateOccDemandSignal API. + */ + CreateOccDemandSignalResponse createOccDemandSignal(CreateOccDemandSignalRequest request); + + /** + * Deletes a OccDemandSignal. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteOccDemandSignal API. + */ + DeleteOccDemandSignalResponse deleteOccDemandSignal(DeleteOccDemandSignalRequest request); + + /** + * Gets information about a OccDemandSignal. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetOccDemandSignal API. + */ + GetOccDemandSignalResponse getOccDemandSignal(GetOccDemandSignalRequest request); + + /** + * Gets a list of OccDemandSignals. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListOccDemandSignals API. + */ + ListOccDemandSignalsResponse listOccDemandSignals(ListOccDemandSignalsRequest request); + + /** + * Updates the data of an OccDemandSignal. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use PatchOccDemandSignal API. + */ + PatchOccDemandSignalResponse patchOccDemandSignal(PatchOccDemandSignalRequest request); + + /** + * Updates a OccDemandSignal. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateOccDemandSignal API. + */ + UpdateOccDemandSignalResponse updateOccDemandSignal(UpdateOccDemandSignalRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OccDemandSignalWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may return multiple + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + OccDemandSignalPaginators getPaginators(); +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsync.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsync.java new file mode 100644 index 0000000000..641dfcc574 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsync.java @@ -0,0 +1,178 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; + +/** + * Use the OCI Control Center Demand Signal API to manage Demand Signals. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public interface OccDemandSignalAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Moves a OccDemandSignal into a different compartment within the same tenancy. For information about moving resources between + * compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeOccDemandSignalCompartment( + ChangeOccDemandSignalCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeOccDemandSignalCompartmentRequest, + ChangeOccDemandSignalCompartmentResponse> + handler); + + /** + * Creates a OccDemandSignal. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createOccDemandSignal( + CreateOccDemandSignalRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateOccDemandSignalRequest, CreateOccDemandSignalResponse> + handler); + + /** + * Deletes a OccDemandSignal. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteOccDemandSignal( + DeleteOccDemandSignalRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteOccDemandSignalRequest, DeleteOccDemandSignalResponse> + handler); + + /** + * Gets information about a OccDemandSignal. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getOccDemandSignal( + GetOccDemandSignalRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccDemandSignalRequest, GetOccDemandSignalResponse> + handler); + + /** + * Gets a list of OccDemandSignals. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listOccDemandSignals( + ListOccDemandSignalsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse> + handler); + + /** + * Updates the data of an OccDemandSignal. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future patchOccDemandSignal( + PatchOccDemandSignalRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchOccDemandSignalRequest, PatchOccDemandSignalResponse> + handler); + + /** + * Updates a OccDemandSignal. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateOccDemandSignal( + UpdateOccDemandSignalRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateOccDemandSignalRequest, UpdateOccDemandSignalResponse> + handler); +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsyncClient.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsyncClient.java new file mode 100644 index 0000000000..d3657685f7 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalAsyncClient.java @@ -0,0 +1,817 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.internal.http.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; + +/** + * Async client implementation for OccDemandSignal service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class OccDemandSignalAsyncClient implements OccDemandSignalAsync { + /** + * Service instance for OccDemandSignal. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OCCDEMANDSIGNAL") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://control-center-ds.{region}.oci.{secondLevelDomain}") + .endpointServiceName("control-center-ds") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OccDemandSignalAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OccDemandSignalAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public OccDemandSignalAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public OccDemandSignalAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OccDemandSignalAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, OccDemandSignalAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OccDemandSignalAsyncClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new OccDemandSignalAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String endpoint = null; + java.net.URI uri = client.getBaseTarget().getUri(); + if (uri != null) { + endpoint = uri.toString(); + } + return endpoint; + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + /** + * This method should be used to enable or disable the use of realm-specific endpoint template. + * The default value is null. To enable the use of endpoint template defined for the realm in + * use, set the flag to true To disable the use of endpoint template defined for the realm in + * use, set the flag to false + * + * @param useOfRealmSpecificEndpointTemplateEnabled This flag can be set to true or false to + * enable or disable the use of realm-specific endpoint template respectively + */ + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + changeOccDemandSignalCompartment( + ChangeOccDemandSignalCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeOccDemandSignalCompartmentRequest, + ChangeOccDemandSignalCompartmentResponse> + handler) { + LOG.trace("Called async changeOccDemandSignalCompartment"); + final ChangeOccDemandSignalCompartmentRequest interceptedRequest = + ChangeOccDemandSignalCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeOccDemandSignalCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "ChangeOccDemandSignalCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/ChangeOccDemandSignalCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeOccDemandSignalCompartmentResponse> + transformer = + ChangeOccDemandSignalCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeOccDemandSignalCompartmentRequest, + ChangeOccDemandSignalCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeOccDemandSignalCompartmentRequest, + ChangeOccDemandSignalCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeOccDemandSignalCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeOccDemandSignalCompartmentRequest, + ChangeOccDemandSignalCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createOccDemandSignal( + CreateOccDemandSignalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOccDemandSignalRequest, CreateOccDemandSignalResponse> + handler) { + LOG.trace("Called async createOccDemandSignal"); + final CreateOccDemandSignalRequest interceptedRequest = + CreateOccDemandSignalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOccDemandSignalConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "CreateOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/CreateOccDemandSignal"); + final java.util.function.Function + transformer = + CreateOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateOccDemandSignalRequest, CreateOccDemandSignalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateOccDemandSignalRequest, CreateOccDemandSignalResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateOccDemandSignalDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateOccDemandSignalRequest, CreateOccDemandSignalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteOccDemandSignal( + DeleteOccDemandSignalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOccDemandSignalRequest, DeleteOccDemandSignalResponse> + handler) { + LOG.trace("Called async deleteOccDemandSignal"); + final DeleteOccDemandSignalRequest interceptedRequest = + DeleteOccDemandSignalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOccDemandSignalConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "DeleteOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/DeleteOccDemandSignal"); + final java.util.function.Function + transformer = + DeleteOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteOccDemandSignalRequest, DeleteOccDemandSignalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteOccDemandSignalRequest, DeleteOccDemandSignalResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteOccDemandSignalRequest, DeleteOccDemandSignalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getOccDemandSignal( + GetOccDemandSignalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccDemandSignalRequest, GetOccDemandSignalResponse> + handler) { + LOG.trace("Called async getOccDemandSignal"); + final GetOccDemandSignalRequest interceptedRequest = + GetOccDemandSignalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOccDemandSignalConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "GetOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/GetOccDemandSignal"); + final java.util.function.Function + transformer = + GetOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetOccDemandSignalRequest, GetOccDemandSignalResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetOccDemandSignalRequest, GetOccDemandSignalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listOccDemandSignals( + ListOccDemandSignalsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse> + handler) { + LOG.trace("Called async listOccDemandSignals"); + final ListOccDemandSignalsRequest interceptedRequest = + ListOccDemandSignalsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccDemandSignalsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "ListOccDemandSignals", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignalCollection/ListOccDemandSignals"); + final java.util.function.Function + transformer = + ListOccDemandSignalsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future patchOccDemandSignal( + PatchOccDemandSignalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchOccDemandSignalRequest, PatchOccDemandSignalResponse> + handler) { + LOG.trace("Called async patchOccDemandSignal"); + final PatchOccDemandSignalRequest interceptedRequest = + PatchOccDemandSignalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchOccDemandSignalConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "PatchOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/PatchOccDemandSignal"); + final java.util.function.Function + transformer = + PatchOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + PatchOccDemandSignalRequest, PatchOccDemandSignalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PatchOccDemandSignalRequest, PatchOccDemandSignalResponse>, + java.util.concurrent.Future> + futureSupplier = + client.patchFutureSupplier( + interceptedRequest, + interceptedRequest.getPatchOccDemandSignalDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PatchOccDemandSignalRequest, PatchOccDemandSignalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateOccDemandSignal( + UpdateOccDemandSignalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOccDemandSignalRequest, UpdateOccDemandSignalResponse> + handler) { + LOG.trace("Called async updateOccDemandSignal"); + final UpdateOccDemandSignalRequest interceptedRequest = + UpdateOccDemandSignalConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOccDemandSignalConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "UpdateOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/UpdateOccDemandSignal"); + final java.util.function.Function + transformer = + UpdateOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateOccDemandSignalRequest, UpdateOccDemandSignalResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateOccDemandSignalRequest, UpdateOccDemandSignalResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateOccDemandSignalDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateOccDemandSignalRequest, UpdateOccDemandSignalResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalClient.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalClient.java new file mode 100644 index 0000000000..2e2080754f --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalClient.java @@ -0,0 +1,844 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.internal.http.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class OccDemandSignalClient implements OccDemandSignal { + /** + * Service instance for OccDemandSignal. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OCCDEMANDSIGNAL") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://control-center-ds.{region}.oci.{secondLevelDomain}") + .endpointServiceName("control-center-ds") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OccDemandSignalClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final OccDemandSignalWaiters waiters; + + private final OccDemandSignalPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public OccDemandSignalClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public OccDemandSignalClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public OccDemandSignalClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected OccDemandSignalClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("OccDemandSignal-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OccDemandSignalWaiters(executorService, this); + + this.paginators = new OccDemandSignalPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OccDemandSignalClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new OccDemandSignalClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String endpoint = null; + java.net.URI uri = client.getBaseTarget().getUri(); + if (uri != null) { + endpoint = uri.toString(); + } + return endpoint; + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + /** + * This method should be used to enable or disable the use of realm-specific endpoint template. + * The default value is null. To enable the use of endpoint template defined for the realm in + * use, set the flag to true To disable the use of endpoint template defined for the realm in + * use, set the flag to false + * + * @param useOfRealmSpecificEndpointTemplateEnabled This flag can be set to true or false to + * enable or disable the use of realm-specific endpoint template respectively + */ + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeOccDemandSignalCompartmentResponse changeOccDemandSignalCompartment( + ChangeOccDemandSignalCompartmentRequest request) { + LOG.trace("Called changeOccDemandSignalCompartment"); + final ChangeOccDemandSignalCompartmentRequest interceptedRequest = + ChangeOccDemandSignalCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeOccDemandSignalCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "ChangeOccDemandSignalCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/ChangeOccDemandSignalCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeOccDemandSignalCompartmentResponse> + transformer = + ChangeOccDemandSignalCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeOccDemandSignalCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateOccDemandSignalResponse createOccDemandSignal( + CreateOccDemandSignalRequest request) { + LOG.trace("Called createOccDemandSignal"); + final CreateOccDemandSignalRequest interceptedRequest = + CreateOccDemandSignalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateOccDemandSignalConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "CreateOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/CreateOccDemandSignal"); + java.util.function.Function + transformer = + CreateOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateOccDemandSignalDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteOccDemandSignalResponse deleteOccDemandSignal( + DeleteOccDemandSignalRequest request) { + LOG.trace("Called deleteOccDemandSignal"); + final DeleteOccDemandSignalRequest interceptedRequest = + DeleteOccDemandSignalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteOccDemandSignalConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "DeleteOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/DeleteOccDemandSignal"); + java.util.function.Function + transformer = + DeleteOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetOccDemandSignalResponse getOccDemandSignal(GetOccDemandSignalRequest request) { + LOG.trace("Called getOccDemandSignal"); + final GetOccDemandSignalRequest interceptedRequest = + GetOccDemandSignalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetOccDemandSignalConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "GetOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/GetOccDemandSignal"); + java.util.function.Function + transformer = + GetOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListOccDemandSignalsResponse listOccDemandSignals(ListOccDemandSignalsRequest request) { + LOG.trace("Called listOccDemandSignals"); + final ListOccDemandSignalsRequest interceptedRequest = + ListOccDemandSignalsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListOccDemandSignalsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "ListOccDemandSignals", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignalCollection/ListOccDemandSignals"); + java.util.function.Function + transformer = + ListOccDemandSignalsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public PatchOccDemandSignalResponse patchOccDemandSignal(PatchOccDemandSignalRequest request) { + LOG.trace("Called patchOccDemandSignal"); + final PatchOccDemandSignalRequest interceptedRequest = + PatchOccDemandSignalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchOccDemandSignalConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "PatchOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/PatchOccDemandSignal"); + java.util.function.Function + transformer = + PatchOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.patch( + ib, + retriedRequest.getPatchOccDemandSignalDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateOccDemandSignalResponse updateOccDemandSignal( + UpdateOccDemandSignalRequest request) { + LOG.trace("Called updateOccDemandSignal"); + final UpdateOccDemandSignalRequest interceptedRequest = + UpdateOccDemandSignalConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateOccDemandSignalConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "OccDemandSignal", + "UpdateOccDemandSignal", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/UpdateOccDemandSignal"); + java.util.function.Function + transformer = + UpdateOccDemandSignalConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateOccDemandSignalDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public OccDemandSignalWaiters getWaiters() { + return waiters; + } + + @Override + public OccDemandSignalPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalPaginators.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalPaginators.java new file mode 100644 index 0000000000..059c64a696 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalPaginators.java @@ -0,0 +1,150 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of OccDemandSignal where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class OccDemandSignalPaginators { + private final OccDemandSignal client; + + public OccDemandSignalPaginators(OccDemandSignal client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listOccDemandSignals 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 listOccDemandSignalsResponseIterator( + final ListOccDemandSignalsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccDemandSignalsRequest.Builder, ListOccDemandSignalsRequest, + ListOccDemandSignalsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccDemandSignalsRequest.Builder get() { + return ListOccDemandSignalsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccDemandSignalsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccDemandSignalsRequest.Builder>, + ListOccDemandSignalsRequest>() { + @Override + public ListOccDemandSignalsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccDemandSignalsRequest.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< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse>() { + @Override + public ListOccDemandSignalsResponse apply(ListOccDemandSignalsRequest request) { + return client.listOccDemandSignals(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.demandsignal.model.OccDemandSignalSummary} objects + * contained in responses from the listOccDemandSignals 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.demandsignal.model.OccDemandSignalSummary} objects + * contained in responses received from the service. + */ + public Iterable + listOccDemandSignalsRecordIterator(final ListOccDemandSignalsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccDemandSignalsRequest.Builder, ListOccDemandSignalsRequest, + ListOccDemandSignalsResponse, + com.oracle.bmc.demandsignal.model.OccDemandSignalSummary>( + new java.util.function.Supplier() { + @Override + public ListOccDemandSignalsRequest.Builder get() { + return ListOccDemandSignalsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccDemandSignalsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccDemandSignalsRequest.Builder>, + ListOccDemandSignalsRequest>() { + @Override + public ListOccDemandSignalsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccDemandSignalsRequest.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< + ListOccDemandSignalsRequest, ListOccDemandSignalsResponse>() { + @Override + public ListOccDemandSignalsResponse apply(ListOccDemandSignalsRequest request) { + return client.listOccDemandSignals(request); + } + }, + new java.util.function.Function< + ListOccDemandSignalsResponse, + java.util.List< + com.oracle.bmc.demandsignal.model.OccDemandSignalSummary>>() { + @Override + public java.util.List + apply(ListOccDemandSignalsResponse response) { + return response.getOccDemandSignalCollection().getItems(); + } + }); + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalWaiters.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalWaiters.java new file mode 100644 index 0000000000..a99306741a --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/OccDemandSignalWaiters.java @@ -0,0 +1,133 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of OccDemandSignal. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class OccDemandSignalWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final OccDemandSignal client; + + public OccDemandSignalWaiters( + java.util.concurrent.ExecutorService executorService, OccDemandSignal client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forOccDemandSignal( + GetOccDemandSignalRequest request, + com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forOccDemandSignal( + 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 + forOccDemandSignal( + GetOccDemandSignalRequest request, + com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forOccDemandSignal( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forOccDemandSignal( + GetOccDemandSignalRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forOccDemandSignal( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OccDemandSignal. + private com.oracle.bmc.waiter.Waiter + forOccDemandSignal( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOccDemandSignalRequest request, + final com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetOccDemandSignalRequest, GetOccDemandSignalResponse>() { + @Override + public GetOccDemandSignalResponse apply( + GetOccDemandSignalRequest request) { + return client.getOccDemandSignal(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOccDemandSignalResponse response) { + return targetStatesSet.contains( + response.getOccDemandSignal().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/SdkClientsMetadata.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/SdkClientsMetadata.java new file mode 100644 index 0000000000..ac49d3271b --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/SdkClientsMetadata.java @@ -0,0 +1,11 @@ +/** + * 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.demandsignal; + +import com.oracle.bmc.SdkClients; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@SdkClients({OccDemandSignalAsyncClient.class, OccDemandSignalClient.class}) +public final class SdkClientsMetadata {} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ChangeOccDemandSignalCompartmentConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ChangeOccDemandSignalCompartmentConverter.java new file mode 100644 index 0000000000..7fc5d23cf9 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ChangeOccDemandSignalCompartmentConverter.java @@ -0,0 +1,151 @@ +/** + * 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.demandsignal.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ChangeOccDemandSignalCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeOccDemandSignalCompartmentConverter.class); + + public static com.oracle.bmc.demandsignal.requests.ChangeOccDemandSignalCompartmentRequest + interceptRequest( + com.oracle.bmc.demandsignal.requests.ChangeOccDemandSignalCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.ChangeOccDemandSignalCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccDemandSignalId(), "occDemandSignalId must not be blank"); + Validate.notNull( + request.getChangeOccDemandSignalCompartmentDetails(), + "changeOccDemandSignalCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occDemandSignals") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccDemandSignalId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.ChangeOccDemandSignalCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.ChangeOccDemandSignalCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.ChangeOccDemandSignalCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse.Builder + builder = + com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses + .ChangeOccDemandSignalCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccDemandSignalConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccDemandSignalConverter.java new file mode 100644 index 0000000000..12f880d5f2 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/CreateOccDemandSignalConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateOccDemandSignalConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateOccDemandSignalConverter.class); + + public static com.oracle.bmc.demandsignal.requests.CreateOccDemandSignalRequest + interceptRequest( + com.oracle.bmc.demandsignal.requests.CreateOccDemandSignalRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.CreateOccDemandSignalRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateOccDemandSignalDetails(), + "createOccDemandSignalDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20240430").path("occDemandSignals"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .CreateOccDemandSignalResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .CreateOccDemandSignalResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccDemandSignal>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccDemandSignal> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .CreateOccDemandSignalResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occDemandSignal(response.getItem()); + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses.CreateOccDemandSignalResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteAgentConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccDemandSignalConverter.java similarity index 75% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteAgentConverter.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccDemandSignalConverter.java index fbd40c5878..dca5bd9e2a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/DeleteAgentConverter.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/DeleteOccDemandSignalConverter.java @@ -2,55 +2,56 @@ * 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.internal.http; +package com.oracle.bmc.demandsignal.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class DeleteAgentConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteOccDemandSignalConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DeleteAgentConverter.class); + org.slf4j.LoggerFactory.getLogger(DeleteOccDemandSignalConverter.class); - public static com.oracle.bmc.databasemigration.requests.DeleteAgentRequest interceptRequest( - com.oracle.bmc.databasemigration.requests.DeleteAgentRequest request) { + public static com.oracle.bmc.demandsignal.requests.DeleteOccDemandSignalRequest + interceptRequest( + com.oracle.bmc.demandsignal.requests.DeleteOccDemandSignalRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.DeleteAgentRequest request) { + com.oracle.bmc.demandsignal.requests.DeleteOccDemandSignalRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); + Validate.notBlank(request.getOccDemandSignalId(), "occDemandSignalId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") - .path("agents") + .path("/20240430") + .path("occDemandSignals") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getAgentId())); + request.getOccDemandSignalId())); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -59,27 +60,29 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse> + com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse> + com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse> + com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse>() { + com.oracle.bmc.demandsignal.responses + .DeleteOccDemandSignalResponse>() { @Override - public com.oracle.bmc.databasemigration.responses.DeleteAgentResponse + public com.oracle.bmc.demandsignal.responses + .DeleteOccDemandSignalResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.DeleteAgentResponse"); + "Transform function invoked for com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -97,25 +100,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse + com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse .Builder builder = - com.oracle.bmc.databasemigration.responses - .DeleteAgentResponse.builder() + com.oracle.bmc.demandsignal.responses + .DeleteOccDemandSignalResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - java.util.Optional> opcWorkRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-work-request-id"); @@ -127,7 +119,18 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.databasemigration.responses.DeleteAgentResponse + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses.DeleteOccDemandSignalResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAgentConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccDemandSignalConverter.java similarity index 73% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAgentConverter.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccDemandSignalConverter.java index 20ac540d78..bd4cdd178b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetAgentConverter.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/GetOccDemandSignalConverter.java @@ -2,42 +2,42 @@ * 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.internal.http; +package com.oracle.bmc.demandsignal.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class GetAgentConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetOccDemandSignalConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetAgentConverter.class); + org.slf4j.LoggerFactory.getLogger(GetOccDemandSignalConverter.class); - public static com.oracle.bmc.databasemigration.requests.GetAgentRequest interceptRequest( - com.oracle.bmc.databasemigration.requests.GetAgentRequest request) { + public static com.oracle.bmc.demandsignal.requests.GetOccDemandSignalRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.GetOccDemandSignalRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.GetAgentRequest request) { + com.oracle.bmc.demandsignal.requests.GetOccDemandSignalRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); + Validate.notBlank(request.getOccDemandSignalId(), "occDemandSignalId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") - .path("agents") + .path("/20240430") + .path("occDemandSignals") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getAgentId())); + request.getOccDemandSignalId())); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -55,60 +55,73 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.GetAgentResponse> + com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.GetAgentResponse> + com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.GetAgentResponse> + com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.GetAgentResponse>() { + com.oracle.bmc.demandsignal.responses + .GetOccDemandSignalResponse>() { @Override - public com.oracle.bmc.databasemigration.responses.GetAgentResponse + public com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.GetAgentResponse"); + "Transform function invoked for com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .Agent>> + com.oracle.bmc.demandsignal.model + .OccDemandSignal>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model.Agent + com.oracle.bmc.demandsignal.model + .OccDemandSignal .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model.Agent + com.oracle.bmc.demandsignal.model + .OccDemandSignal .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model.Agent> + com.oracle.bmc.demandsignal.model.OccDemandSignal> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses.GetAgentResponse.Builder + com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse + .Builder builder = - com.oracle.bmc.databasemigration.responses - .GetAgentResponse.builder() + com.oracle.bmc.demandsignal.responses + .GetOccDemandSignalResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.agent(response.getItem()); + builder.occDemandSignal(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -121,16 +134,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.databasemigration.responses.GetAgentResponse + com.oracle.bmc.demandsignal.responses.GetOccDemandSignalResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentsConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccDemandSignalsConverter.java similarity index 75% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentsConverter.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccDemandSignalsConverter.java index f86755dc49..030097cef9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListAgentsConverter.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/ListOccDemandSignalsConverter.java @@ -2,90 +2,99 @@ * 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.internal.http; +package com.oracle.bmc.demandsignal.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentsConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListOccDemandSignalsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListAgentsConverter.class); + org.slf4j.LoggerFactory.getLogger(ListOccDemandSignalsConverter.class); - public static com.oracle.bmc.databasemigration.requests.ListAgentsRequest interceptRequest( - com.oracle.bmc.databasemigration.requests.ListAgentsRequest request) { + public static com.oracle.bmc.demandsignal.requests.ListOccDemandSignalsRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.ListOccDemandSignalsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.ListAgentsRequest request) { + com.oracle.bmc.demandsignal.requests.ListOccDemandSignalsRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20210929").path("agents"); + client.getBaseTarget().path("/20240430").path("occDemandSignals"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } - if (request.getLimit() != null) { + if (request.getLifecycleState() != null) { target = target.queryParam( - "limit", + "lifecycleState", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); + request.getLifecycleState().getValue())); } - if (request.getPage() != null) { + if (request.getDisplayName() != null) { target = target.queryParam( - "page", + "displayName", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); + request.getDisplayName())); } - if (request.getSortBy() != null) { + if (request.getId() != null) { target = target.queryParam( - "sortBy", + "id", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); + request.getId())); } - if (request.getSortOrder() != null) { + if (request.getLimit() != null) { target = target.queryParam( - "sortOrder", + "limit", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); + request.getLimit())); } - if (request.getDisplayName() != null) { + if (request.getPage() != null) { target = target.queryParam( - "displayName", + "page", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); + request.getPage())); } - if (request.getLifecycleState() != null) { + if (request.getSortOrder() != null) { target = target.queryParam( - "lifecycleState", + "sortOrder", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); } com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -104,64 +113,66 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentsResponse> + com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentsResponse> + com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentsResponse> + com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ListAgentsResponse>() { + com.oracle.bmc.demandsignal.responses + .ListOccDemandSignalsResponse>() { @Override - public com.oracle.bmc.databasemigration.responses.ListAgentsResponse + public com.oracle.bmc.demandsignal.responses + .ListOccDemandSignalsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.ListAgentsResponse"); + "Transform function invoked for com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .AgentCollection>> + com.oracle.bmc.demandsignal.model + .OccDemandSignalCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model - .AgentCollection + com.oracle.bmc.demandsignal.model + .OccDemandSignalCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model - .AgentCollection + com.oracle.bmc.demandsignal.model + .OccDemandSignalCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .AgentCollection> + com.oracle.bmc.demandsignal.model + .OccDemandSignalCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses.ListAgentsResponse + com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse .Builder builder = - com.oracle.bmc.databasemigration.responses - .ListAgentsResponse.builder() + com.oracle.bmc.demandsignal.responses + .ListOccDemandSignalsResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.agentCollection(response.getItem()); + builder.occDemandSignalCollection(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -185,7 +196,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.databasemigration.responses.ListAgentsResponse + com.oracle.bmc.demandsignal.responses.ListOccDemandSignalsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/PatchOccDemandSignalConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/PatchOccDemandSignalConverter.java new file mode 100644 index 0000000000..a683ac9e75 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/PatchOccDemandSignalConverter.java @@ -0,0 +1,165 @@ +/** + * 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.demandsignal.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class PatchOccDemandSignalConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PatchOccDemandSignalConverter.class); + + public static com.oracle.bmc.demandsignal.requests.PatchOccDemandSignalRequest interceptRequest( + com.oracle.bmc.demandsignal.requests.PatchOccDemandSignalRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.PatchOccDemandSignalRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccDemandSignalId(), "occDemandSignalId must not be blank"); + Validate.notNull( + request.getPatchOccDemandSignalDetails(), + "patchOccDemandSignalDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occDemandSignals") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccDemandSignalId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .PatchOccDemandSignalResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .PatchOccDemandSignalResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccDemandSignal>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccDemandSignal> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .PatchOccDemandSignalResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occDemandSignal(response.getItem()); + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses.PatchOccDemandSignalResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccDemandSignalConverter.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccDemandSignalConverter.java new file mode 100644 index 0000000000..5608d06d3d --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/internal/http/UpdateOccDemandSignalConverter.java @@ -0,0 +1,166 @@ +/** + * 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.demandsignal.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.demandsignal.model.*; +import com.oracle.bmc.demandsignal.requests.*; +import com.oracle.bmc.demandsignal.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateOccDemandSignalConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateOccDemandSignalConverter.class); + + public static com.oracle.bmc.demandsignal.requests.UpdateOccDemandSignalRequest + interceptRequest( + com.oracle.bmc.demandsignal.requests.UpdateOccDemandSignalRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.demandsignal.requests.UpdateOccDemandSignalRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getOccDemandSignalId(), "occDemandSignalId must not be blank"); + Validate.notNull( + request.getUpdateOccDemandSignalDetails(), + "updateOccDemandSignalDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20240430") + .path("occDemandSignals") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getOccDemandSignalId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.demandsignal.responses + .UpdateOccDemandSignalResponse>() { + @Override + public com.oracle.bmc.demandsignal.responses + .UpdateOccDemandSignalResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model + .OccDemandSignal>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.demandsignal.model + .OccDemandSignal + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.demandsignal.model.OccDemandSignal> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse + .Builder + builder = + com.oracle.bmc.demandsignal.responses + .UpdateOccDemandSignalResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.occDemandSignal(response.getItem()); + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.demandsignal.responses.UpdateOccDemandSignalResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ChangeOccDemandSignalCompartmentDetails.java similarity index 74% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ChangeOccDemandSignalCompartmentDetails.java index 4dbd7d330d..b25dc79260 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/ChangeOccDemandSignalCompartmentDetails.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.demandsignal.model; /** - * Change Agent compartment details - * + * The configuration details for the move operation. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeAgentCompartmentDetails.Builder.class + builder = ChangeOccDemandSignalCompartmentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeAgentCompartmentDetails +public final class ChangeOccDemandSignalCompartmentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeAgentCompartmentDetails(String compartmentId) { + public ChangeOccDemandSignalCompartmentDetails(String compartmentId) { super(); this.compartmentId = compartmentId; } @@ -32,14 +31,14 @@ public ChangeAgentCompartmentDetails(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the OccDemandSignal to. * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the OccDemandSignal to. * * @param compartmentId the value to set * @return this builder @@ -53,9 +52,9 @@ public Builder compartmentId(String compartmentId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public ChangeAgentCompartmentDetails build() { - ChangeAgentCompartmentDetails model = - new ChangeAgentCompartmentDetails(this.compartmentId); + public ChangeOccDemandSignalCompartmentDetails build() { + ChangeOccDemandSignalCompartmentDetails model = + new ChangeOccDemandSignalCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,7 +62,7 @@ public ChangeAgentCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeAgentCompartmentDetails model) { + public Builder copy(ChangeOccDemandSignalCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -83,14 +82,14 @@ public Builder toBuilder() { } /** - * The OCID of the compartment to move the resource to. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the OccDemandSignal to. * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the OccDemandSignal to. * * @return the value **/ @@ -110,7 +109,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeAgentCompartmentDetails("); + sb.append("ChangeOccDemandSignalCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -122,11 +121,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeAgentCompartmentDetails)) { + if (!(o instanceof ChangeOccDemandSignalCompartmentDetails)) { return false; } - ChangeAgentCompartmentDetails other = (ChangeAgentCompartmentDetails) o; + ChangeOccDemandSignalCompartmentDetails other = (ChangeOccDemandSignalCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccDemandSignalDetails.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccDemandSignalDetails.java new file mode 100644 index 0000000000..1d5e14ebe0 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/CreateOccDemandSignalDetails.java @@ -0,0 +1,382 @@ +/** + * 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.demandsignal.model; + +/** + * The data to create a OccDemandSignal. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOccDemandSignalDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOccDemandSignalDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "occDemandSignals", + "isActive", + "compartmentId", + "freeformTags", + "definedTags" + }) + public CreateOccDemandSignalDetails( + String displayName, + java.util.List occDemandSignals, + Boolean isActive, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.occDemandSignals = occDemandSignals; + this.isActive = isActive; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OccDemandSignal data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("occDemandSignals") + private java.util.List occDemandSignals; + + /** + * The OccDemandSignal data. + * @param occDemandSignals the value to set + * @return this builder + **/ + public Builder occDemandSignals(java.util.List occDemandSignals) { + this.occDemandSignals = occDemandSignals; + this.__explicitlySet__.add("occDemandSignals"); + return this; + } + /** + * Indicator of whether to share the data with Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Indicator of whether to share the data with Oracle. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the OccDemandSignal in. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the OccDemandSignal in. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOccDemandSignalDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", occDemandSignals=").append(String.valueOf(this.occDemandSignals)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccDemandSignalDetails)) { + return false; + } + + CreateOccDemandSignalDetails other = (CreateOccDemandSignalDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.occDemandSignals, other.occDemandSignals) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.occDemandSignals == null ? 43 : this.occDemandSignals.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignal.java similarity index 58% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignal.java index 9634717e14..95f2b03209 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignal.java @@ -2,10 +2,14 @@ * 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; +package com.oracle.bmc.demandsignal.model; /** - * ODMS Agent Details + * An OccDemandSignal is a forecast created for different Resource Types. + *

+ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to + * an administrator. If you're an administrator who needs to write policies to give users access, see + * [Getting Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -15,47 +19,47 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AgentSummary.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OccDemandSignal.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AgentSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class OccDemandSignal extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", - "displayName", "compartmentId", - "streamId", - "version", + "displayName", + "occDemandSignals", + "isActive", + "lifecycleState", "timeCreated", "timeUpdated", - "lifecycleState", "lifecycleDetails", "freeformTags", "definedTags", "systemTags" }) - public AgentSummary( + public OccDemandSignal( String id, - String displayName, String compartmentId, - String streamId, - String version, + String displayName, + java.util.List occDemandSignals, + Boolean isActive, + LifecycleState lifecycleState, 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.displayName = displayName; + this.occDemandSignals = occDemandSignals; + this.isActive = isActive; + this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -65,15 +69,13 @@ public AgentSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. * @param id the value to set * @return this builder **/ @@ -83,15 +85,29 @@ public Builder id(String id) { return this; } /** - * ODMS Agent name - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. * @param displayName the value to set * @return this builder **/ @@ -101,68 +117,66 @@ public Builder displayName(String displayName) { return this; } /** - * OCID of the compartment - * + * The OccDemandSignal data. **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; + @com.fasterxml.jackson.annotation.JsonProperty("occDemandSignals") + private java.util.List occDemandSignals; /** - * OCID of the compartment - * - * @param compartmentId the value to set + * The OccDemandSignal data. + * @param occDemandSignals the value to set * @return this builder **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); + public Builder occDemandSignals(java.util.List occDemandSignals) { + this.occDemandSignals = occDemandSignals; + this.__explicitlySet__.add("occDemandSignals"); return this; } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; /** - * The OCID of the Stream - * - * @param streamId the value to set + * Indicator of whether to share the data with Oracle. + * @param isActive the value to set * @return this builder **/ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); return this; } /** - * ODMS Agent version - * + * The current state of the OccDemandSignal. **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; /** - * ODMS Agent version - * - * @param version the value to set + * The current state of the OccDemandSignal. + * @param lifecycleState the value to set * @return this builder **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); return this; } /** - * The time the Agent was created. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeCreated the value to set * @return this builder @@ -173,14 +187,18 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeUpdated the value to set * @return this builder @@ -191,32 +209,16 @@ public Builder timeUpdated(java.util.Date 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. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * * @param lifecycleDetails the value to set * @return this builder @@ -227,16 +229,20 @@ 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -276,7 +287,8 @@ public Builder definedTags( private java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @param systemTags the value to set @@ -291,17 +303,17 @@ public Builder systemTags(java.util.Map> s @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AgentSummary build() { - AgentSummary model = - new AgentSummary( + public OccDemandSignal build() { + OccDemandSignal model = + new OccDemandSignal( this.id, - this.displayName, this.compartmentId, - this.streamId, - this.version, + this.displayName, + this.occDemandSignals, + this.isActive, + this.lifecycleState, this.timeCreated, this.timeUpdated, - this.lifecycleState, this.lifecycleDetails, this.freeformTags, this.definedTags, @@ -313,21 +325,24 @@ public AgentSummary build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentSummary model) { + public Builder copy(OccDemandSignal model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); + if (model.wasPropertyExplicitlySet("occDemandSignals")) { + this.occDemandSignals(model.getOccDemandSignals()); } - if (model.wasPropertyExplicitlySet("streamId")) { - this.streamId(model.getStreamId()); + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); @@ -335,9 +350,6 @@ public Builder copy(AgentSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } @@ -366,15 +378,13 @@ public Builder toBuilder() { } /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. * @return the value **/ public String getId() { @@ -382,15 +392,27 @@ public String getId() { } /** - * ODMS Agent name - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. * @return the value **/ public String getDisplayName() { @@ -398,62 +420,112 @@ public String getDisplayName() { } /** - * OCID of the compartment - * + * The OccDemandSignal data. **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; + @com.fasterxml.jackson.annotation.JsonProperty("occDemandSignals") + private final java.util.List occDemandSignals; /** - * OCID of the compartment - * + * The OccDemandSignal data. * @return the value **/ - public String getCompartmentId() { - return compartmentId; + public java.util.List getOccDemandSignals() { + return occDemandSignals; } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. * @return the value **/ - public String getStreamId() { - return streamId; + public Boolean getIsActive() { + return isActive; } /** - * ODMS Agent version - * + * The current state of the OccDemandSignal. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the OccDemandSignal. **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; /** - * ODMS Agent version - * + * The current state of the OccDemandSignal. * @return the value **/ - public String getVersion() { - return version; + public LifecycleState getLifecycleState() { + return lifecycleState; } /** - * The time the Agent was created. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value **/ @@ -462,14 +534,18 @@ public java.util.Date getTimeCreated() { } /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value **/ @@ -478,30 +554,16 @@ public java.util.Date getTimeUpdated() { } /** - * 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. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * * @return the value **/ @@ -510,16 +572,20 @@ 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -554,7 +625,8 @@ public java.util.Map> getDefinedTags() { private final java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value @@ -575,16 +647,16 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentSummary("); + sb.append("OccDemandSignal("); 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(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", occDemandSignals=").append(String.valueOf(this.occDemandSignals)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", 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)); @@ -598,19 +670,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentSummary)) { + if (!(o instanceof OccDemandSignal)) { return false; } - AgentSummary other = (AgentSummary) o; + OccDemandSignal other = (OccDemandSignal) 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.displayName, other.displayName) + && java.util.Objects.equals(this.occDemandSignals, other.occDemandSignals) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.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) @@ -623,17 +695,19 @@ 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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.occDemandSignals == null ? 43 : this.occDemandSignals.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalCollection.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalCollection.java new file mode 100644 index 0000000000..5a330944a3 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * Results of a occDemandSignal search. Contains both OccDemandSignalSummary items and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccDemandSignalCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccDemandSignalCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccDemandSignalCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of occDemandSignals. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of occDemandSignals. + * @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 OccDemandSignalCollection build() { + OccDemandSignalCollection model = new OccDemandSignalCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccDemandSignalCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of occDemandSignals. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of occDemandSignals. + * @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("OccDemandSignalCollection("); + 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 OccDemandSignalCollection)) { + return false; + } + + OccDemandSignalCollection other = (OccDemandSignalCollection) 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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalData.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalData.java new file mode 100644 index 0000000000..b8b055c7ad --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalData.java @@ -0,0 +1,211 @@ +/** + * 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.demandsignal.model; + +/** + * The Data Object For Demand Signal. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccDemandSignalData.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccDemandSignalData extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resourceType", "units", "values"}) + public OccDemandSignalData( + String resourceType, String units, java.util.List values) { + super(); + this.resourceType = resourceType; + this.units = units; + this.values = values; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the resource for the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * The name of the resource for the data. + * @param resourceType the value to set + * @return this builder + **/ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * The units of the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("units") + private String units; + + /** + * The units of the data. + * @param units the value to set + * @return this builder + **/ + public Builder units(String units) { + this.units = units; + this.__explicitlySet__.add("units"); + return this; + } + /** + * The values of forecast. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * The values of forecast. + * @param values the value to set + * @return this builder + **/ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccDemandSignalData build() { + OccDemandSignalData model = + new OccDemandSignalData(this.resourceType, this.units, this.values); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccDemandSignalData model) { + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("units")) { + this.units(model.getUnits()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the resource for the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * The name of the resource for the data. + * @return the value + **/ + public String getResourceType() { + return resourceType; + } + + /** + * The units of the data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("units") + private final String units; + + /** + * The units of the data. + * @return the value + **/ + public String getUnits() { + return units; + } + + /** + * The values of forecast. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * The values of forecast. + * @return the value + **/ + public java.util.List getValues() { + return values; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccDemandSignalData("); + sb.append("super=").append(super.toString()); + sb.append("resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", units=").append(String.valueOf(this.units)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccDemandSignalData)) { + return false; + } + + OccDemandSignalData other = (OccDemandSignalData) o; + return java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.units, other.units) + && java.util.Objects.equals(this.values, other.values) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.units == null ? 43 : this.units.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalSummary.java similarity index 66% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalSummary.java index 0f6572e274..5d48a382a7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalSummary.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.demandsignal.model; /** - * ODMS Agent Details - * + * Summary information about a OccDemandSignal. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,18 +14,19 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Agent.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccDemandSignalSummary.Builder.class +) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class Agent extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class OccDemandSignalSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "displayName", "compartmentId", - "streamId", - "publicKey", - "version", + "isActive", "timeCreated", "timeUpdated", "lifecycleState", @@ -35,16 +35,14 @@ public final class Agent extends com.oracle.bmc.http.internal.ExplicitlySetBmcMo "definedTags", "systemTags" }) - public Agent( + public OccDemandSignalSummary( String id, String displayName, String compartmentId, - String streamId, - String publicKey, - String version, + Boolean isActive, java.util.Date timeCreated, java.util.Date timeUpdated, - LifecycleStates lifecycleState, + OccDemandSignal.LifecycleState lifecycleState, String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, @@ -53,9 +51,7 @@ public Agent( this.id = id; this.displayName = displayName; this.compartmentId = compartmentId; - this.streamId = streamId; - this.publicKey = publicKey; - this.version = version; + this.isActive = isActive; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -68,15 +64,13 @@ public Agent( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. * @param id the value to set * @return this builder **/ @@ -86,15 +80,13 @@ public Builder id(String id) { return this; } /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. * @param displayName the value to set * @return this builder **/ @@ -104,15 +96,13 @@ public Builder displayName(String displayName) { return this; } /** - * OCID of the compartment - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * OCID of the compartment - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @param compartmentId the value to set * @return this builder **/ @@ -122,68 +112,32 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; /** - * The OCID of the Stream - * - * @param streamId the value to set + * Indicator of whether to share the data with Oracle. + * @param isActive the value to set * @return this builder **/ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); 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. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the Agent was created. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeCreated the value to set * @return this builder @@ -194,14 +148,18 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @param timeUpdated the value to set * @return this builder @@ -212,32 +170,32 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The current state of the ODMS on-premises Agent. - * + * The current state of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleStates lifecycleState; + private OccDemandSignal.LifecycleState lifecycleState; /** - * The current state of the ODMS on-premises Agent. - * + * The current state of the OccDemandSignal. * @param lifecycleState the value to set * @return this builder **/ - public Builder lifecycleState(LifecycleStates lifecycleState) { + public Builder lifecycleState(OccDemandSignal.LifecycleState 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. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * * @param lifecycleDetails the value to set * @return this builder @@ -248,16 +206,20 @@ 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -297,7 +264,8 @@ public Builder definedTags( private java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @param systemTags the value to set @@ -312,15 +280,13 @@ public Builder systemTags(java.util.Map> s @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public Agent build() { - Agent model = - new Agent( + public OccDemandSignalSummary build() { + OccDemandSignalSummary model = + new OccDemandSignalSummary( this.id, this.displayName, this.compartmentId, - this.streamId, - this.publicKey, - this.version, + this.isActive, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -335,7 +301,7 @@ public Agent build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(Agent model) { + public Builder copy(OccDemandSignalSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -345,14 +311,8 @@ public Builder copy(Agent model) { 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("isActive")) { + this.isActive(model.getIsActive()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); @@ -391,15 +351,13 @@ public Builder toBuilder() { } /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the resource - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. * @return the value **/ public String getId() { @@ -407,15 +365,13 @@ public String getId() { } /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. * @return the value **/ public String getDisplayName() { @@ -423,15 +379,13 @@ public String getDisplayName() { } /** - * OCID of the compartment - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @return the value **/ public String getCompartmentId() { @@ -439,62 +393,30 @@ public String getCompartmentId() { } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. * @return the value **/ - public String getStreamId() { - return streamId; + public Boolean getIsActive() { + return isActive; } /** - * 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. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Agent was created. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value **/ @@ -503,14 +425,18 @@ public java.util.Date getTimeCreated() { } /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. + * The date and time the OccDemandSignal was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} * * @return the value **/ @@ -519,30 +445,30 @@ public java.util.Date getTimeUpdated() { } /** - * The current state of the ODMS on-premises Agent. - * + * The current state of the OccDemandSignal. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; + private final OccDemandSignal.LifecycleState lifecycleState; /** - * The current state of the ODMS on-premises Agent. - * + * The current state of the OccDemandSignal. * @return the value **/ - public LifecycleStates getLifecycleState() { + public OccDemandSignal.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. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + * A message that describes the current state of the OccDemandSignal in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. * * @return the value **/ @@ -551,16 +477,20 @@ 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -595,7 +530,8 @@ public java.util.Map> getDefinedTags() { private final java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

* Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value @@ -616,14 +552,12 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("Agent("); + sb.append("OccDemandSignalSummary("); 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(", isActive=").append(String.valueOf(this.isActive)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -640,17 +574,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof Agent)) { + if (!(o instanceof OccDemandSignalSummary)) { return false; } - Agent other = (Agent) o; + OccDemandSignalSummary other = (OccDemandSignalSummary) 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.isActive, other.isActive) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -670,9 +602,7 @@ public int 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.isActive == null ? 43 : this.isActive.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalValue.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalValue.java new file mode 100644 index 0000000000..564c78742e --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/OccDemandSignalValue.java @@ -0,0 +1,210 @@ +/** + * 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.demandsignal.model; + +/** + * The Value of Demand Signal for particular month. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccDemandSignalValue.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OccDemandSignalValue extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeExpected", "value", "comments"}) + public OccDemandSignalValue(java.util.Date timeExpected, Float value, String comments) { + super(); + this.timeExpected = timeExpected; + this.value = value; + this.comments = comments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The date of the Demand Signal Value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpected") + private java.util.Date timeExpected; + + /** + * The date of the Demand Signal Value. + * @param timeExpected the value to set + * @return this builder + **/ + public Builder timeExpected(java.util.Date timeExpected) { + this.timeExpected = timeExpected; + this.__explicitlySet__.add("timeExpected"); + return this; + } + /** + * The Demand Signal Value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Float value; + + /** + * The Demand Signal Value. + * @param value the value to set + * @return this builder + **/ + public Builder value(Float value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** + * Space provided for users to make comments regarding the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comments") + private String comments; + + /** + * Space provided for users to make comments regarding the value. + * @param comments the value to set + * @return this builder + **/ + public Builder comments(String comments) { + this.comments = comments; + this.__explicitlySet__.add("comments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccDemandSignalValue build() { + OccDemandSignalValue model = + new OccDemandSignalValue(this.timeExpected, this.value, this.comments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccDemandSignalValue model) { + if (model.wasPropertyExplicitlySet("timeExpected")) { + this.timeExpected(model.getTimeExpected()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("comments")) { + this.comments(model.getComments()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The date of the Demand Signal Value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpected") + private final java.util.Date timeExpected; + + /** + * The date of the Demand Signal Value. + * @return the value + **/ + public java.util.Date getTimeExpected() { + return timeExpected; + } + + /** + * The Demand Signal Value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Float value; + + /** + * The Demand Signal Value. + * @return the value + **/ + public Float getValue() { + return value; + } + + /** + * Space provided for users to make comments regarding the value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("comments") + private final String comments; + + /** + * Space provided for users to make comments regarding the value. + * @return the value + **/ + public String getComments() { + return comments; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccDemandSignalValue("); + sb.append("super=").append(super.toString()); + sb.append("timeExpected=").append(String.valueOf(this.timeExpected)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", comments=").append(String.valueOf(this.comments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccDemandSignalValue)) { + return false; + } + + OccDemandSignalValue other = (OccDemandSignalValue) o; + return java.util.Objects.equals(this.timeExpected, other.timeExpected) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.comments, other.comments) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.timeExpected == null ? 43 : this.timeExpected.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.comments == null ? 43 : this.comments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertInstruction.java new file mode 100644 index 0000000000..b8a160df77 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertInstruction.java @@ -0,0 +1,277 @@ +/** + * 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.demandsignal.model; + +/** + * An operation that inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchInsertInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchInsertInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be inserted into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be inserted into the target. + * @param value the value to set + * @return this builder + **/ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + * @param selectedItem the value to set + * @return this builder + **/ + public Builder selectedItem(String selectedItem) { + this.selectedItem = selectedItem; + this.__explicitlySet__.add("selectedItem"); + return this; + } + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + * @param position the value to set + * @return this builder + **/ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchInsertInstruction build() { + PatchInsertInstruction model = + new PatchInsertInstruction( + this.selection, this.value, this.selectedItem, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchInsertInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("selectedItem")) { + this.selectedItem(model.getSelectedItem()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchInsertInstruction( + String selection, Object value, String selectedItem, Position position) { + super(selection); + this.value = value; + this.selectedItem = selectedItem; + this.position = position; + } + + /** + * A value to be inserted into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be inserted into the target. + * @return the value + **/ + public Object getValue() { + return value; + } + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private final String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + * @return the value + **/ + public String getSelectedItem() { + return selectedItem; + } + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + public enum Position { + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + * @return the value + **/ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInsertInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", selectedItem=").append(String.valueOf(this.selectedItem)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInsertInstruction)) { + return false; + } + + PatchInsertInstruction other = (PatchInsertInstruction) o; + return java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.selectedItem, other.selectedItem) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.selectedItem == null ? 43 : this.selectedItem.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertMultipleInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertMultipleInstruction.java new file mode 100644 index 0000000000..a105755565 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInsertMultipleInstruction.java @@ -0,0 +1,280 @@ +/** + * 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.demandsignal.model; + +/** + * An operation that inserts multiple consecutive values into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchInsertMultipleInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchInsertMultipleInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A list of consecutive values to be inserted into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * A list of consecutive values to be inserted into the target. + * @param values the value to set + * @return this builder + **/ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + * @param selectedItem the value to set + * @return this builder + **/ + public Builder selectedItem(String selectedItem) { + this.selectedItem = selectedItem; + this.__explicitlySet__.add("selectedItem"); + return this; + } + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + * @param position the value to set + * @return this builder + **/ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchInsertMultipleInstruction build() { + PatchInsertMultipleInstruction model = + new PatchInsertMultipleInstruction( + this.selection, this.values, this.selectedItem, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchInsertMultipleInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("selectedItem")) { + this.selectedItem(model.getSelectedItem()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchInsertMultipleInstruction( + String selection, + java.util.List values, + String selectedItem, + Position position) { + super(selection); + this.values = values; + this.selectedItem = selectedItem; + this.position = position; + } + + /** + * A list of consecutive values to be inserted into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * A list of consecutive values to be inserted into the target. + * @return the value + **/ + public java.util.List getValues() { + return values; + } + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private final String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as {@code selection}. + * @return the value + **/ + public String getSelectedItem() { + return selectedItem; + } + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + public enum Position { + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If {@code selectedItem} is specified but results in an empty selection, then both values specify insertion at the last position. + * + * @return the value + **/ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInsertMultipleInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", selectedItem=").append(String.valueOf(this.selectedItem)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInsertMultipleInstruction)) { + return false; + } + + PatchInsertMultipleInstruction other = (PatchInsertMultipleInstruction) o; + return java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.selectedItem, other.selectedItem) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + (this.selectedItem == null ? 43 : this.selectedItem.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInstruction.java new file mode 100644 index 0000000000..a54cf1ba7d --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchInstruction.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.demandsignal.model; + +/** + * A single instruction to be included as part of Patch request content. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation", + defaultImpl = PatchInstruction.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchMoveInstruction.class, + name = "MOVE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchRemoveInstruction.class, + name = "REMOVE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchReplaceInstruction.class, + name = "REPLACE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchInsertMultipleInstruction.class, + name = "INSERT_MULTIPLE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchInsertInstruction.class, + name = "INSERT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchRequireInstruction.class, + name = "REQUIRE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchMergeInstruction.class, + name = "MERGE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchProhibitInstruction.class, + name = "PROHIBIT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PatchInstruction extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"selection"}) + protected PatchInstruction(String selection) { + super(); + this.selection = selection; + } + + /** + * The set of values to which the operation applies as a [JMESPath expression](https://jmespath.org/specification.html) for evaluation against the context resource. + * An operation fails if the selection yields an exception, except as otherwise specified. + * Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final String selection; + + /** + * The set of values to which the operation applies as a [JMESPath expression](https://jmespath.org/specification.html) for evaluation against the context resource. + * An operation fails if the selection yields an exception, except as otherwise specified. + * Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false. + * + * @return the value + **/ + public String getSelection() { + return selection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInstruction("); + sb.append("super=").append(super.toString()); + sb.append("selection=").append(String.valueOf(this.selection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInstruction)) { + return false; + } + + PatchInstruction other = (PatchInstruction) o; + return java.util.Objects.equals(this.selection, other.selection) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type of this patch instruction. + **/ + public enum Operation { + Require("REQUIRE"), + Prohibit("PROHIBIT"), + Replace("REPLACE"), + Insert("INSERT"), + Remove("REMOVE"), + Move("MOVE"), + Merge("MERGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operation v : Operation.values()) { + map.put(v.getValue(), v); + } + } + + Operation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Operation: " + key); + } + }; +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMergeInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMergeInstruction.java new file mode 100644 index 0000000000..2f7b0297e1 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMergeInstruction.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.model; + +/** + * An operation that recursively updates items of the selection, or adding the value if the selection is empty. + * If the value is not an object, it is used directly, otherwise each key-value member is used + * to create or update a member of the same name in the target and the same process is applied recursively for each object-typed value + * (similar to [RFC 7396](https://tools.ietf.org/html/rfc7396#section-2) JSON Merge Patch, except that null values are copied + * rather than transformed into deletions). + * NOT_FOUND exceptions are handled by creating the implied containing structure. + * To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchMergeInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchMergeInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be merged into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be merged into the target. + * @param value the value to set + * @return this builder + **/ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchMergeInstruction build() { + PatchMergeInstruction model = new PatchMergeInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchMergeInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchMergeInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be merged into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be merged into the target. + * @return the value + **/ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchMergeInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchMergeInstruction)) { + return false; + } + + PatchMergeInstruction other = (PatchMergeInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMoveInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMoveInstruction.java new file mode 100644 index 0000000000..18a862d311 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchMoveInstruction.java @@ -0,0 +1,242 @@ +/** + * 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.demandsignal.model; + +/** + * An operation that "puts" values from elsewhere in the target, functionally equivalent to a single add and then a remove. + * The first item of the selection is replaced, or created if the selection is empty. + * NOT_FOUND exceptions in the selection are handled by creating the implied containing structure. + * This operation fails if the {@code from} selection yields any exceptions, or if an item is moved to any of its descendants. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchMoveInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchMoveInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("from") + private String from; + + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + * @param from the value to set + * @return this builder + **/ + public Builder from(String from) { + this.from = from; + this.__explicitlySet__.add("from"); + return this; + } + /** + * Where to insert the value in an array, relative to the first item in the selection. + * If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If the first item in the selection is not the child of an array, then this field has no effect. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the value in an array, relative to the first item in the selection. + * If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If the first item in the selection is not the child of an array, then this field has no effect. + * + * @param position the value to set + * @return this builder + **/ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchMoveInstruction build() { + PatchMoveInstruction model = + new PatchMoveInstruction(this.selection, this.from, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchMoveInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("from")) { + this.from(model.getFrom()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchMoveInstruction(String selection, String from, Position position) { + super(selection); + this.from = from; + this.position = position; + } + + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("from") + private final String from; + + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + * @return the value + **/ + public String getFrom() { + return from; + } + + /** + * Where to insert the value in an array, relative to the first item in the selection. + * If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If the first item in the selection is not the child of an array, then this field has no effect. + * + **/ + public enum Position { + At("AT"), + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the value in an array, relative to the first item in the selection. + * If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If the first item in the selection is not the child of an array, then this field has no effect. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the value in an array, relative to the first item in the selection. + * If there is no such item, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. + * If the first item in the selection is not the child of an array, then this field has no effect. + * + * @return the value + **/ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchMoveInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", from=").append(String.valueOf(this.from)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchMoveInstruction)) { + return false; + } + + PatchMoveInstruction other = (PatchMoveInstruction) o; + return java.util.Objects.equals(this.from, other.from) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.from == null ? 43 : this.from.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchOccDemandSignalDetails.java similarity index 75% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchOccDemandSignalDetails.java index b35cbd10d9..b3add8dee2 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchOccDemandSignalDetails.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.demandsignal.model; /** - * Results of an Agent search. Contains AgentSummary items. - * + * Demand Signal details to patch. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,13 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AgentCollection.Builder.class) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchOccDemandSignalDetails.Builder.class +) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AgentCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class PatchOccDemandSignalDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public AgentCollection(java.util.List items) { + public PatchOccDemandSignalDetails(java.util.List items) { super(); this.items = items; } @@ -29,19 +31,17 @@ public AgentCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Items in collection. - * + * List of patch instructions. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Items in collection. - * + * List of patch instructions. * @param items the value to set * @return this builder **/ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -50,8 +50,8 @@ public Builder items(java.util.List items) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AgentCollection build() { - AgentCollection model = new AgentCollection(this.items); + public PatchOccDemandSignalDetails build() { + PatchOccDemandSignalDetails model = new PatchOccDemandSignalDetails(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,7 +59,7 @@ public AgentCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentCollection model) { + public Builder copy(PatchOccDemandSignalDetails model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -79,18 +79,16 @@ public Builder toBuilder() { } /** - * Items in collection. - * + * List of patch instructions. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Items in collection. - * + * List of patch instructions. * @return the value **/ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -106,7 +104,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentCollection("); + sb.append("PatchOccDemandSignalDetails("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -118,11 +116,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentCollection)) { + if (!(o instanceof PatchOccDemandSignalDetails)) { return false; } - AgentCollection other = (AgentCollection) o; + PatchOccDemandSignalDetails other = (PatchOccDemandSignalDetails) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchProhibitInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchProhibitInstruction.java new file mode 100644 index 0000000000..6bf5b41ad2 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchProhibitInstruction.java @@ -0,0 +1,165 @@ +/** + * 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.demandsignal.model; + +/** + * A precondition operation that requires a selection to be empty, or optionally to be non-empty but include no item with a specified value + * (useful for asserting that a value does not exist before attempting to create it, avoiding accidental update). + * It fails if value is provided and the selection includes an item matching it, or if value is not provided and the selection is not empty, + * but ignores NOT_FOUND exceptions. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchProhibitInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchProhibitInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @param value the value to set + * @return this builder + **/ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchProhibitInstruction build() { + PatchProhibitInstruction model = + new PatchProhibitInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchProhibitInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchProhibitInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @return the value + **/ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchProhibitInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchProhibitInstruction)) { + return false; + } + + PatchProhibitInstruction other = (PatchProhibitInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRemoveInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRemoveInstruction.java new file mode 100644 index 0000000000..5d35a58a50 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRemoveInstruction.java @@ -0,0 +1,114 @@ +/** + * 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.demandsignal.model; + +/** + * An operation that deletes items, ignoring NOT_FOUND exceptions. + * To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRemoveInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchRemoveInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRemoveInstruction build() { + PatchRemoveInstruction model = new PatchRemoveInstruction(this.selection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRemoveInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchRemoveInstruction(String selection) { + super(selection); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchRemoveInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchRemoveInstruction)) { + return false; + } + + PatchRemoveInstruction other = (PatchRemoveInstruction) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchReplaceInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchReplaceInstruction.java new file mode 100644 index 0000000000..a8d0acf377 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchReplaceInstruction.java @@ -0,0 +1,152 @@ +/** + * 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.demandsignal.model; + +/** + * An operation that "puts" a value, replacing every item of the selection with it, or creating it if the selection is empty. + * NOT_FOUND exceptions are handled by creating the implied containing structure (but note that this may put the target in an invalid state, + * which can be prevented by use of precondition operations). + * To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchReplaceInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchReplaceInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be added into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be added into the target. + * @param value the value to set + * @return this builder + **/ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchReplaceInstruction build() { + PatchReplaceInstruction model = new PatchReplaceInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchReplaceInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchReplaceInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be added into the target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be added into the target. + * @return the value + **/ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchReplaceInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchReplaceInstruction)) { + return false; + } + + PatchReplaceInstruction other = (PatchReplaceInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRequireInstruction.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRequireInstruction.java new file mode 100644 index 0000000000..57e5d12304 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/PatchRequireInstruction.java @@ -0,0 +1,163 @@ +/** + * 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.demandsignal.model; + +/** + * A precondition operation that requires a selection to be non-empty, and optionally to include an item with a specified value + * (useful for asserting that a value exists before attempting to update it, avoiding accidental creation). + * It fails if the selection is empty, or if value is provided and no item of the selection matches it. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRequireInstruction.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class PatchRequireInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @param value the value to set + * @return this builder + **/ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRequireInstruction build() { + PatchRequireInstruction model = new PatchRequireInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRequireInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchRequireInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be compared against each item of the selection. + * If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @return the value + **/ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchRequireInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchRequireInstruction)) { + return false; + } + + PatchRequireInstruction other = (PatchRequireInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/SortOrder.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/SortOrder.java new file mode 100644 index 0000000000..c856a49a9d --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/SortOrder.java @@ -0,0 +1,44 @@ +/** + * 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.demandsignal.model; + +/** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code displayName} + * sort order is case sensitive. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccDemandSignalDetails.java similarity index 56% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccDemandSignalDetails.java index f4ab5a33bf..f1d48bdf3a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/model/UpdateOccDemandSignalDetails.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.demandsignal.model; /** - * ODMS Agent Details - * + * The data to update a OccDemandSignal. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,33 +14,23 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateAgentDetails.Builder.class + builder = UpdateOccDemandSignalDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateAgentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class UpdateOccDemandSignalDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "displayName", - "streamId", - "publicKey", - "version", - "freeformTags", - "definedTags" - }) - public UpdateAgentDetails( + @java.beans.ConstructorProperties({"displayName", "isActive", "freeformTags", "definedTags"}) + public UpdateOccDemandSignalDetails( String displayName, - String streamId, - String publicKey, - String version, + Boolean isActive, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; - this.streamId = streamId; - this.publicKey = publicKey; - this.version = version; + this.isActive = isActive; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -49,15 +38,13 @@ public UpdateAgentDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * ODMS Agent 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 String displayName; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. * @param displayName the value to set * @return this builder **/ @@ -67,70 +54,36 @@ public Builder displayName(String displayName) { return this; } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; /** - * The OCID of the Stream - * - * @param streamId the value to set + * Indicator of whether to share the data with Oracle. + * @param isActive the value to set * @return this builder **/ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); 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"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} * * @param definedTags the value to set * @return this builder @@ -165,15 +122,10 @@ public Builder definedTags( @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); + public UpdateOccDemandSignalDetails build() { + UpdateOccDemandSignalDetails model = + new UpdateOccDemandSignalDetails( + this.displayName, this.isActive, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -181,18 +133,12 @@ public UpdateAgentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateAgentDetails model) { + public Builder copy(UpdateOccDemandSignalDetails 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("isActive")) { + this.isActive(model.getIsActive()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -216,15 +162,13 @@ public Builder toBuilder() { } /** - * ODMS Agent 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; /** - * ODMS Agent name - * + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. * @return the value **/ public String getDisplayName() { @@ -232,64 +176,34 @@ public String getDisplayName() { } /** - * The OCID of the Stream - * + * Indicator of whether to share the data with Oracle. **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; /** - * 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 - * + * Indicator of whether to share the data with Oracle. * @return the value **/ - public String getVersion() { - return version; + public Boolean getIsActive() { + return isActive; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} * * @return the value **/ @@ -327,12 +245,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateAgentDetails("); + sb.append("UpdateOccDemandSignalDetails("); 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(", isActive=").append(String.valueOf(this.isActive)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -344,15 +260,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAgentDetails)) { + if (!(o instanceof UpdateOccDemandSignalDetails)) { return false; } - UpdateAgentDetails other = (UpdateAgentDetails) o; + UpdateOccDemandSignalDetails other = (UpdateOccDemandSignalDetails) 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.isActive, other.isActive) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -363,9 +277,7 @@ 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.isActive == null ? 43 : this.isActive.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ChangeOccDemandSignalCompartmentRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ChangeOccDemandSignalCompartmentRequest.java new file mode 100644 index 0000000000..b838fe0b24 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ChangeOccDemandSignalCompartmentRequest.java @@ -0,0 +1,332 @@ +/** + * 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.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use ChangeOccDemandSignalCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ChangeOccDemandSignalCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + public String getOccDemandSignalId() { + return occDemandSignalId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails + changeOccDemandSignalCompartmentDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails + getChangeOccDemandSignalCompartmentDetails() { + return changeOccDemandSignalCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails getBody$() { + return changeOccDemandSignalCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeOccDemandSignalCompartmentRequest, + com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param occDemandSignalId the value to set + * @return this builder instance + */ + public Builder occDemandSignalId(String occDemandSignalId) { + this.occDemandSignalId = occDemandSignalId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails + changeOccDemandSignalCompartmentDetails = null; + + /** + * The information to be updated. + * @param changeOccDemandSignalCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeOccDemandSignalCompartmentDetails( + com.oracle.bmc.demandsignal.model.ChangeOccDemandSignalCompartmentDetails + changeOccDemandSignalCompartmentDetails) { + this.changeOccDemandSignalCompartmentDetails = changeOccDemandSignalCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeOccDemandSignalCompartmentRequest o) { + occDemandSignalId(o.getOccDemandSignalId()); + changeOccDemandSignalCompartmentDetails(o.getChangeOccDemandSignalCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeOccDemandSignalCompartmentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeOccDemandSignalCompartmentRequest + */ + public ChangeOccDemandSignalCompartmentRequest build() { + ChangeOccDemandSignalCompartmentRequest 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.demandsignal.model.ChangeOccDemandSignalCompartmentDetails body) { + changeOccDemandSignalCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeOccDemandSignalCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeOccDemandSignalCompartmentRequest + */ + public ChangeOccDemandSignalCompartmentRequest buildWithoutInvocationCallback() { + ChangeOccDemandSignalCompartmentRequest request = + new ChangeOccDemandSignalCompartmentRequest(); + request.occDemandSignalId = occDemandSignalId; + request.changeOccDemandSignalCompartmentDetails = + changeOccDemandSignalCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeOccDemandSignalCompartmentRequest(occDemandSignalId, changeOccDemandSignalCompartmentDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occDemandSignalId(occDemandSignalId) + .changeOccDemandSignalCompartmentDetails(changeOccDemandSignalCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occDemandSignalId=").append(String.valueOf(this.occDemandSignalId)); + sb.append(",changeOccDemandSignalCompartmentDetails=") + .append(String.valueOf(this.changeOccDemandSignalCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeOccDemandSignalCompartmentRequest)) { + return false; + } + + ChangeOccDemandSignalCompartmentRequest other = (ChangeOccDemandSignalCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occDemandSignalId, other.occDemandSignalId) + && java.util.Objects.equals( + this.changeOccDemandSignalCompartmentDetails, + other.changeOccDemandSignalCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occDemandSignalId == null ? 43 : this.occDemandSignalId.hashCode()); + result = + (result * PRIME) + + (this.changeOccDemandSignalCompartmentDetails == null + ? 43 + : this.changeOccDemandSignalCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccDemandSignalRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccDemandSignalRequest.java new file mode 100644 index 0000000000..853d2b62ba --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/CreateOccDemandSignalRequest.java @@ -0,0 +1,300 @@ +/** + * 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.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use CreateOccDemandSignalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateOccDemandSignalRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails> { + + /** + * Details for the new OccDemandSignal. + */ + private com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails + createOccDemandSignalDetails; + + /** + * Details for the new OccDemandSignal. + */ + public com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails + getCreateOccDemandSignalDetails() { + return createOccDemandSignalDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails getBody$() { + return createOccDemandSignalDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOccDemandSignalRequest, + com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new OccDemandSignal. + */ + private com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails + createOccDemandSignalDetails = null; + + /** + * Details for the new OccDemandSignal. + * @param createOccDemandSignalDetails the value to set + * @return this builder instance + */ + public Builder createOccDemandSignalDetails( + com.oracle.bmc.demandsignal.model.CreateOccDemandSignalDetails + createOccDemandSignalDetails) { + this.createOccDemandSignalDetails = createOccDemandSignalDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateOccDemandSignalRequest o) { + createOccDemandSignalDetails(o.getCreateOccDemandSignalDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOccDemandSignalRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateOccDemandSignalRequest + */ + public CreateOccDemandSignalRequest build() { + CreateOccDemandSignalRequest 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.demandsignal.model.CreateOccDemandSignalDetails body) { + createOccDemandSignalDetails(body); + return this; + } + + /** + * Build the instance of CreateOccDemandSignalRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateOccDemandSignalRequest + */ + public CreateOccDemandSignalRequest buildWithoutInvocationCallback() { + CreateOccDemandSignalRequest request = new CreateOccDemandSignalRequest(); + request.createOccDemandSignalDetails = createOccDemandSignalDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOccDemandSignalRequest(createOccDemandSignalDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createOccDemandSignalDetails(createOccDemandSignalDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createOccDemandSignalDetails=") + .append(String.valueOf(this.createOccDemandSignalDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccDemandSignalRequest)) { + return false; + } + + CreateOccDemandSignalRequest other = (CreateOccDemandSignalRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOccDemandSignalDetails, other.createOccDemandSignalDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createOccDemandSignalDetails == null + ? 43 + : this.createOccDemandSignalDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccDemandSignalRequest.java similarity index 56% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccDemandSignalRequest.java index 0eda15a65b..8a1434da68 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/DeleteOccDemandSignalRequest.java @@ -2,130 +2,131 @@ * 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.demandsignal.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.demandsignal.model.*; /** - * Example: Click here to see how to use DeleteAgentRequest. + * Example: Click here to see how to use DeleteOccDemandSignalRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class DeleteAgentRequest extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteOccDemandSignalRequest + extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the agent - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. */ - private String agentId; + private String occDemandSignalId; /** - * The OCID of the agent - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. */ - public String getAgentId() { - return agentId; + public String getOccDemandSignalId() { + return occDemandSignalId; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. * */ - private String opcRequestId; + private String ifMatch; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. * */ - public String getOpcRequestId() { - return opcRequestId; + public String getIfMatch() { + return ifMatch; } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ - private String ifMatch; + private String opcRequestId; /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ - public String getIfMatch() { - return ifMatch; + public String getOpcRequestId() { + return opcRequestId; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - DeleteAgentRequest, java.lang.Void> { + DeleteOccDemandSignalRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the agent - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. */ - private String agentId = null; + private String occDemandSignalId = null; /** - * The OCID of the agent - * - * @param agentId the value to set + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param occDemandSignalId the value to set * @return this builder instance */ - public Builder agentId(String agentId) { - this.agentId = agentId; + public Builder occDemandSignalId(String occDemandSignalId) { + this.occDemandSignalId = occDemandSignalId; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. * */ - private String opcRequestId = null; + private String ifMatch = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRequestId the value to set + * @param ifMatch the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ - private String ifMatch = null; + private String opcRequestId = null; /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * - * @param ifMatch the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -156,47 +157,47 @@ public Builder retryConfiguration( * 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()); + public Builder copy(DeleteOccDemandSignalRequest o) { + occDemandSignalId(o.getOccDemandSignalId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of DeleteAgentRequest as configured by this builder + * Build the instance of DeleteOccDemandSignalRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of DeleteAgentRequest + * @return instance of DeleteOccDemandSignalRequest */ - public DeleteAgentRequest build() { - DeleteAgentRequest request = buildWithoutInvocationCallback(); + public DeleteOccDemandSignalRequest build() { + DeleteOccDemandSignalRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of DeleteAgentRequest as configured by this builder + * Build the instance of DeleteOccDemandSignalRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of DeleteAgentRequest + * @return instance of DeleteOccDemandSignalRequest */ - public DeleteAgentRequest buildWithoutInvocationCallback() { - DeleteAgentRequest request = new DeleteAgentRequest(); - request.agentId = agentId; - request.opcRequestId = opcRequestId; + public DeleteOccDemandSignalRequest buildWithoutInvocationCallback() { + DeleteOccDemandSignalRequest request = new DeleteOccDemandSignalRequest(); + request.occDemandSignalId = occDemandSignalId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new DeleteAgentRequest(agentId, opcRequestId, ifMatch); + // new DeleteOccDemandSignalRequest(occDemandSignalId, ifMatch, opcRequestId); } } @@ -205,7 +206,10 @@ public DeleteAgentRequest buildWithoutInvocationCallback() { * @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 new Builder() + .occDemandSignalId(occDemandSignalId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -221,9 +225,9 @@ 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(",occDemandSignalId=").append(String.valueOf(this.occDemandSignalId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -233,24 +237,26 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteAgentRequest)) { + if (!(o instanceof DeleteOccDemandSignalRequest)) { return false; } - DeleteAgentRequest other = (DeleteAgentRequest) o; + DeleteOccDemandSignalRequest other = (DeleteOccDemandSignalRequest) 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); + && java.util.Objects.equals(this.occDemandSignalId, other.occDemandSignalId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.occDemandSignalId == null ? 43 : this.occDemandSignalId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/GetOccDemandSignalRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/GetOccDemandSignalRequest.java new file mode 100644 index 0000000000..86237b805c --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/GetOccDemandSignalRequest.java @@ -0,0 +1,211 @@ +/** + * 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.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use GetOccDemandSignalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetOccDemandSignalRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + public String getOccDemandSignalId() { + return occDemandSignalId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetOccDemandSignalRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param occDemandSignalId the value to set + * @return this builder instance + */ + public Builder occDemandSignalId(String occDemandSignalId) { + this.occDemandSignalId = occDemandSignalId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetOccDemandSignalRequest o) { + occDemandSignalId(o.getOccDemandSignalId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccDemandSignalRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetOccDemandSignalRequest + */ + public GetOccDemandSignalRequest build() { + GetOccDemandSignalRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccDemandSignalRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetOccDemandSignalRequest + */ + public GetOccDemandSignalRequest buildWithoutInvocationCallback() { + GetOccDemandSignalRequest request = new GetOccDemandSignalRequest(); + request.occDemandSignalId = occDemandSignalId; + request.opcRequestId = opcRequestId; + return request; + // new GetOccDemandSignalRequest(occDemandSignalId, 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().occDemandSignalId(occDemandSignalId).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(",occDemandSignalId=").append(String.valueOf(this.occDemandSignalId)); + 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 GetOccDemandSignalRequest)) { + return false; + } + + GetOccDemandSignalRequest other = (GetOccDemandSignalRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occDemandSignalId, other.occDemandSignalId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occDemandSignalId == null ? 43 : this.occDemandSignalId.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-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ListOccDemandSignalsRequest.java similarity index 55% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentsRequest.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ListOccDemandSignalsRequest.java index a6c98bdad0..10ac48624d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentsRequest.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/ListOccDemandSignalsRequest.java @@ -2,64 +2,119 @@ * 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.demandsignal.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.demandsignal.model.*; /** - * Example: Click here to see how to use ListAgentsRequest. + * Example: Click here to see how to use ListOccDemandSignalsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentsRequest extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListOccDemandSignalsRequest + extends com.oracle.bmc.requests.BmcRequest { /** - * The ID of the compartment in which to list resources. - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. */ private String compartmentId; /** - * The ID of the compartment in which to list resources. - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. */ public String getCompartmentId() { return compartmentId; } /** - * The maximum number of items to return. + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + public com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the given display name exactly. + */ + private String displayName; + + /** + * A filter to return only resources that match the given display name exactly. + */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + public String getId() { + return id; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private Integer limit; /** - * The maximum number of items to return. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ 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. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String page; /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ 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. + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.demandsignal.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.demandsignal.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. * */ private SortBy sortBy; /** - * The field to sort by. 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. + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. * **/ public enum SortBy { @@ -96,62 +151,27 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. - * Default order for displayName is ascending. If no value is specified timeCreated is default. + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. * */ public SortBy getSortBy() { return sortBy; } /** - * 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. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ public String getOpcRequestId() { @@ -160,20 +180,18 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ListAgentsRequest, java.lang.Void> { + ListOccDemandSignalsRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The ID of the compartment in which to list resources. - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. */ private String compartmentId = null; /** - * The ID of the compartment in which to list resources. - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. * @param compartmentId the value to set * @return this builder instance */ @@ -183,120 +201,146 @@ public Builder compartmentId(String compartmentId) { } /** - * The maximum number of items to return. + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. * */ - private Integer limit = null; + private com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState lifecycleState = + null; /** - * The maximum number of items to return. + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. * - * @param limit the value to set + * @param lifecycleState the value to set * @return this builder instance */ - public Builder limit(Integer limit) { - this.limit = limit; + public Builder lifecycleState( + com.oracle.bmc.demandsignal.model.OccDemandSignal.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; return this; } /** - * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - * + * A filter to return only resources that match the given display name exactly. */ - private String page = null; + private String displayName = 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 + * A filter to return only resources that match the given display name exactly. + * @param displayName the value to set * @return this builder instance */ - public Builder page(String page) { - this.page = page; + public Builder displayName(String displayName) { + this.displayName = displayName; 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. - * + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. */ - private SortBy sortBy = null; + private String id = 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 + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param id the value to set * @return this builder instance */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; + public Builder id(String id) { + this.id = id; return this; } /** - * The sort order to use, either 'asc' or 'desc'. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; + private Integer limit = null; /** - * The sort order to use, either 'asc' or 'desc'. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * - * @param sortOrder the value to set + * @param limit the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { - this.sortOrder = sortOrder; + public Builder limit(Integer limit) { + this.limit = limit; return this; } /** - * A filter to return only resources that match the entire display name given. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ - private String displayName = null; + private String page = null; /** - * A filter to return only resources that match the entire display name given. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * - * @param displayName the value to set + * @param page the value to set * @return this builder instance */ - public Builder displayName(String displayName) { - this.displayName = displayName; + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.demandsignal.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.demandsignal.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; return this; } /** - * The current state of the Database Migration Deployment. + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. * */ - private com.oracle.bmc.databasemigration.model.LifecycleStates lifecycleState = null; + private SortBy sortBy = null; /** - * The current state of the Database Migration Deployment. + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. * - * @param lifecycleState the value to set + * @param sortBy the value to set * @return this builder instance */ - public Builder lifecycleState( - com.oracle.bmc.databasemigration.model.LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * */ private String opcRequestId = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. * * @param opcRequestId the value to set * @return this builder instance @@ -333,14 +377,15 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListAgentsRequest o) { + public Builder copy(ListOccDemandSignalsRequest o) { compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); limit(o.getLimit()); page(o.getPage()); - sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); - displayName(o.getDisplayName()); - lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -348,42 +393,43 @@ public Builder copy(ListAgentsRequest o) { } /** - * Build the instance of ListAgentsRequest as configured by this builder + * Build the instance of ListOccDemandSignalsRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ListAgentsRequest + * @return instance of ListOccDemandSignalsRequest */ - public ListAgentsRequest build() { - ListAgentsRequest request = buildWithoutInvocationCallback(); + public ListOccDemandSignalsRequest build() { + ListOccDemandSignalsRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListAgentsRequest as configured by this builder + * Build the instance of ListOccDemandSignalsRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ListAgentsRequest + * @return instance of ListOccDemandSignalsRequest */ - public ListAgentsRequest buildWithoutInvocationCallback() { - ListAgentsRequest request = new ListAgentsRequest(); + public ListOccDemandSignalsRequest buildWithoutInvocationCallback() { + ListOccDemandSignalsRequest request = new ListOccDemandSignalsRequest(); request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; request.limit = limit; request.page = page; - request.sortBy = sortBy; request.sortOrder = sortOrder; - request.displayName = displayName; - request.lifecycleState = lifecycleState; + request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListAgentsRequest(compartmentId, limit, page, sortBy, sortOrder, displayName, lifecycleState, opcRequestId); + // new ListOccDemandSignalsRequest(compartmentId, lifecycleState, displayName, id, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -394,12 +440,13 @@ public ListAgentsRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) .limit(limit) .page(page) - .sortBy(sortBy) .sortOrder(sortOrder) - .displayName(displayName) - .lifecycleState(lifecycleState) + .sortBy(sortBy) .opcRequestId(opcRequestId); } @@ -417,12 +464,13 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",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(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -433,19 +481,20 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListAgentsRequest)) { + if (!(o instanceof ListOccDemandSignalsRequest)) { return false; } - ListAgentsRequest other = (ListAgentsRequest) o; + ListOccDemandSignalsRequest other = (ListOccDemandSignalsRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.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.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -456,14 +505,15 @@ public int 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.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/PatchOccDemandSignalRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/PatchOccDemandSignalRequest.java new file mode 100644 index 0000000000..7c4474ce9a --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/PatchOccDemandSignalRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use PatchOccDemandSignalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class PatchOccDemandSignalRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + public String getOccDemandSignalId() { + return occDemandSignalId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails + patchOccDemandSignalDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails + getPatchOccDemandSignalDetails() { + return patchOccDemandSignalDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails getBody$() { + return patchOccDemandSignalDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchOccDemandSignalRequest, + com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param occDemandSignalId the value to set + * @return this builder instance + */ + public Builder occDemandSignalId(String occDemandSignalId) { + this.occDemandSignalId = occDemandSignalId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails + patchOccDemandSignalDetails = null; + + /** + * The information to be updated. + * @param patchOccDemandSignalDetails the value to set + * @return this builder instance + */ + public Builder patchOccDemandSignalDetails( + com.oracle.bmc.demandsignal.model.PatchOccDemandSignalDetails + patchOccDemandSignalDetails) { + this.patchOccDemandSignalDetails = patchOccDemandSignalDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchOccDemandSignalRequest o) { + occDemandSignalId(o.getOccDemandSignalId()); + patchOccDemandSignalDetails(o.getPatchOccDemandSignalDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchOccDemandSignalRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of PatchOccDemandSignalRequest + */ + public PatchOccDemandSignalRequest build() { + PatchOccDemandSignalRequest 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.demandsignal.model.PatchOccDemandSignalDetails body) { + patchOccDemandSignalDetails(body); + return this; + } + + /** + * Build the instance of PatchOccDemandSignalRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of PatchOccDemandSignalRequest + */ + public PatchOccDemandSignalRequest buildWithoutInvocationCallback() { + PatchOccDemandSignalRequest request = new PatchOccDemandSignalRequest(); + request.occDemandSignalId = occDemandSignalId; + request.patchOccDemandSignalDetails = patchOccDemandSignalDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new PatchOccDemandSignalRequest(occDemandSignalId, patchOccDemandSignalDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occDemandSignalId(occDemandSignalId) + .patchOccDemandSignalDetails(patchOccDemandSignalDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occDemandSignalId=").append(String.valueOf(this.occDemandSignalId)); + sb.append(",patchOccDemandSignalDetails=") + .append(String.valueOf(this.patchOccDemandSignalDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchOccDemandSignalRequest)) { + return false; + } + + PatchOccDemandSignalRequest other = (PatchOccDemandSignalRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occDemandSignalId, other.occDemandSignalId) + && java.util.Objects.equals( + this.patchOccDemandSignalDetails, other.patchOccDemandSignalDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occDemandSignalId == null ? 43 : this.occDemandSignalId.hashCode()); + result = + (result * PRIME) + + (this.patchOccDemandSignalDetails == null + ? 43 + : this.patchOccDemandSignalDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/UpdateOccDemandSignalRequest.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/UpdateOccDemandSignalRequest.java new file mode 100644 index 0000000000..40d8253807 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/requests/UpdateOccDemandSignalRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.requests; + +import com.oracle.bmc.demandsignal.model.*; +/** + * Example: Click here to see how to use UpdateOccDemandSignalRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateOccDemandSignalRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + public String getOccDemandSignalId() { + return occDemandSignalId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails + updateOccDemandSignalDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails + getUpdateOccDemandSignalDetails() { + return updateOccDemandSignalDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails getBody$() { + return updateOccDemandSignalDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOccDemandSignalRequest, + com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + */ + private String occDemandSignalId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OccDemandSignal. + * @param occDemandSignalId the value to set + * @return this builder instance + */ + public Builder occDemandSignalId(String occDemandSignalId) { + this.occDemandSignalId = occDemandSignalId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails + updateOccDemandSignalDetails = null; + + /** + * The information to be updated. + * @param updateOccDemandSignalDetails the value to set + * @return this builder instance + */ + public Builder updateOccDemandSignalDetails( + com.oracle.bmc.demandsignal.model.UpdateOccDemandSignalDetails + updateOccDemandSignalDetails) { + this.updateOccDemandSignalDetails = updateOccDemandSignalDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateOccDemandSignalRequest o) { + occDemandSignalId(o.getOccDemandSignalId()); + updateOccDemandSignalDetails(o.getUpdateOccDemandSignalDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOccDemandSignalRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateOccDemandSignalRequest + */ + public UpdateOccDemandSignalRequest build() { + UpdateOccDemandSignalRequest 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.demandsignal.model.UpdateOccDemandSignalDetails body) { + updateOccDemandSignalDetails(body); + return this; + } + + /** + * Build the instance of UpdateOccDemandSignalRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateOccDemandSignalRequest + */ + public UpdateOccDemandSignalRequest buildWithoutInvocationCallback() { + UpdateOccDemandSignalRequest request = new UpdateOccDemandSignalRequest(); + request.occDemandSignalId = occDemandSignalId; + request.updateOccDemandSignalDetails = updateOccDemandSignalDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOccDemandSignalRequest(occDemandSignalId, updateOccDemandSignalDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occDemandSignalId(occDemandSignalId) + .updateOccDemandSignalDetails(updateOccDemandSignalDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occDemandSignalId=").append(String.valueOf(this.occDemandSignalId)); + sb.append(",updateOccDemandSignalDetails=") + .append(String.valueOf(this.updateOccDemandSignalDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccDemandSignalRequest)) { + return false; + } + + UpdateOccDemandSignalRequest other = (UpdateOccDemandSignalRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occDemandSignalId, other.occDemandSignalId) + && java.util.Objects.equals( + this.updateOccDemandSignalDetails, other.updateOccDemandSignalDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occDemandSignalId == null ? 43 : this.occDemandSignalId.hashCode()); + result = + (result * PRIME) + + (this.updateOccDemandSignalDetails == null + ? 43 + : this.updateOccDemandSignalDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ChangeOccDemandSignalCompartmentResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ChangeOccDemandSignalCompartmentResponse.java new file mode 100644 index 0000000000..8d2dc97fb9 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ChangeOccDemandSignalCompartmentResponse.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.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ChangeOccDemandSignalCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeOccDemandSignalCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeOccDemandSignalCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeOccDemandSignalCompartmentResponse build() { + return new ChangeOccDemandSignalCompartmentResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeOccDemandSignalCompartmentResponse)) { + return false; + } + + ChangeOccDemandSignalCompartmentResponse other = + (ChangeOccDemandSignalCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/CreateOccDemandSignalResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/CreateOccDemandSignalResponse.java new file mode 100644 index 0000000000..ac703ea1c4 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/CreateOccDemandSignalResponse.java @@ -0,0 +1,248 @@ +/** + * 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.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateOccDemandSignalResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccDemandSignal getOccDemandSignal() { + return occDemandSignal; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "retryAfter", + "etag", + "opcRequestId", + "occDemandSignal" + }) + private CreateOccDemandSignalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + Integer retryAfter, + String etag, + String opcRequestId, + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + super(__httpStatusCode__, headers); + this.retryAfter = retryAfter; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occDemandSignal = occDemandSignal; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @param occDemandSignal the value to set + * @return this builder + */ + public Builder occDemandSignal( + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + this.occDemandSignal = occDemandSignal; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateOccDemandSignalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + retryAfter(o.getRetryAfter()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occDemandSignal(o.getOccDemandSignal()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateOccDemandSignalResponse build() { + return new CreateOccDemandSignalResponse( + __httpStatusCode__, headers, retryAfter, etag, opcRequestId, occDemandSignal); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",occDemandSignal=").append(String.valueOf(occDemandSignal)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccDemandSignalResponse)) { + return false; + } + + CreateOccDemandSignalResponse other = (CreateOccDemandSignalResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.occDemandSignal, other.occDemandSignal); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.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.occDemandSignal == null ? 43 : this.occDemandSignal.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccDemandSignalResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccDemandSignalResponse.java new file mode 100644 index 0000000000..e4a67d1fe3 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/DeleteOccDemandSignalResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteOccDemandSignalResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteOccDemandSignalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteOccDemandSignalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteOccDemandSignalResponse build() { + return new DeleteOccDemandSignalResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteOccDemandSignalResponse)) { + return false; + } + + DeleteOccDemandSignalResponse other = (DeleteOccDemandSignalResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccDemandSignalResponse.java similarity index 73% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java rename to bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccDemandSignalResponse.java index 1589af8875..f4871cdca0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/GetOccDemandSignalResponse.java @@ -2,74 +2,74 @@ * 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.demandsignal.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.demandsignal.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class GetAgentResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetOccDemandSignalResponse 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. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * For optimistic concurrency control. See {@code if-match}. * * @return the value */ - public String getOpcRequestId() { - return opcRequestId; + public String getEtag() { + return etag; } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String etag; + private String opcRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * * @return the value */ - public String getEtag() { - return etag; + public String getOpcRequestId() { + return opcRequestId; } /** - * The returned Agent instance. + * The returned OccDemandSignal instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; /** - * The returned Agent instance. + * The returned OccDemandSignal instance. * @return the value */ - public com.oracle.bmc.databasemigration.model.Agent getAgent() { - return agent; + public com.oracle.bmc.demandsignal.model.OccDemandSignal getOccDemandSignal() { + return occDemandSignal; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcRequestId", "etag", - "agent" + "opcRequestId", + "occDemandSignal" }) - private GetAgentResponse( + private GetOccDemandSignalResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, String etag, - com.oracle.bmc.databasemigration.model.Agent agent) { + String opcRequestId, + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; this.etag = etag; - this.agent = agent; + this.opcRequestId = opcRequestId; + this.occDemandSignal = occDemandSignal; } public static class Builder { @@ -88,53 +88,54 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * For optimistic concurrency control. See {@code if-match}. * - * @param opcRequestId the value to set + * @param etag the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder etag(String etag) { + this.etag = etag; return this; } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String etag; + private String opcRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * - * @param etag the value to set + * @param opcRequestId the value to set * @return this builder */ - public Builder etag(String etag) { - this.etag = etag; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * The returned Agent instance. + * The returned OccDemandSignal instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; /** - * The returned Agent instance. - * @param agent the value to set + * The returned OccDemandSignal instance. + * @param occDemandSignal the value to set * @return this builder */ - public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { - this.agent = agent; + public Builder occDemandSignal( + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + this.occDemandSignal = occDemandSignal; return this; } @@ -142,12 +143,12 @@ public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetAgentResponse o) { + public Builder copy(GetOccDemandSignalResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - agent(o.getAgent()); + opcRequestId(o.getOpcRequestId()); + occDemandSignal(o.getOccDemandSignal()); return this; } @@ -156,8 +157,9 @@ public Builder copy(GetAgentResponse o) { * Build the response object. * @return the response object */ - public GetAgentResponse build() { - return new GetAgentResponse(__httpStatusCode__, headers, opcRequestId, etag, agent); + public GetOccDemandSignalResponse build() { + return new GetOccDemandSignalResponse( + __httpStatusCode__, headers, etag, opcRequestId, occDemandSignal); } } @@ -174,9 +176,9 @@ 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",occDemandSignal=").append(String.valueOf(occDemandSignal)); sb.append(")"); return sb.toString(); } @@ -186,24 +188,26 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetAgentResponse)) { + if (!(o instanceof GetOccDemandSignalResponse)) { return false; } - GetAgentResponse other = (GetAgentResponse) o; + GetOccDemandSignalResponse other = (GetOccDemandSignalResponse) 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.occDemandSignal, other.occDemandSignal); } @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()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.occDemandSignal == null ? 43 : this.occDemandSignal.hashCode()); return result; } } diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccDemandSignalsResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccDemandSignalsResponse.java new file mode 100644 index 0000000000..7bb3194b17 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/ListOccDemandSignalsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListOccDemandSignalsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned OccDemandSignalCollection instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignalCollection occDemandSignalCollection; + + /** + * The returned OccDemandSignalCollection instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccDemandSignalCollection + getOccDemandSignalCollection() { + return occDemandSignalCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occDemandSignalCollection" + }) + private ListOccDemandSignalsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.demandsignal.model.OccDemandSignalCollection occDemandSignalCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occDemandSignalCollection = occDemandSignalCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned OccDemandSignalCollection instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignalCollection + occDemandSignalCollection; + + /** + * The returned OccDemandSignalCollection instance. + * @param occDemandSignalCollection the value to set + * @return this builder + */ + public Builder occDemandSignalCollection( + com.oracle.bmc.demandsignal.model.OccDemandSignalCollection + occDemandSignalCollection) { + this.occDemandSignalCollection = occDemandSignalCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListOccDemandSignalsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occDemandSignalCollection(o.getOccDemandSignalCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListOccDemandSignalsResponse build() { + return new ListOccDemandSignalsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occDemandSignalCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occDemandSignalCollection=").append(String.valueOf(occDemandSignalCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccDemandSignalsResponse)) { + return false; + } + + ListOccDemandSignalsResponse other = (ListOccDemandSignalsResponse) 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.occDemandSignalCollection, other.occDemandSignalCollection); + } + + @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.occDemandSignalCollection == null + ? 43 + : this.occDemandSignalCollection.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/PatchOccDemandSignalResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/PatchOccDemandSignalResponse.java new file mode 100644 index 0000000000..8639f21b48 --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/PatchOccDemandSignalResponse.java @@ -0,0 +1,248 @@ +/** + * 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.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class PatchOccDemandSignalResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccDemandSignal getOccDemandSignal() { + return occDemandSignal; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "retryAfter", + "etag", + "opcRequestId", + "occDemandSignal" + }) + private PatchOccDemandSignalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + Integer retryAfter, + String etag, + String opcRequestId, + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + super(__httpStatusCode__, headers); + this.retryAfter = retryAfter; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occDemandSignal = occDemandSignal; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @param occDemandSignal the value to set + * @return this builder + */ + public Builder occDemandSignal( + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + this.occDemandSignal = occDemandSignal; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PatchOccDemandSignalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + retryAfter(o.getRetryAfter()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occDemandSignal(o.getOccDemandSignal()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public PatchOccDemandSignalResponse build() { + return new PatchOccDemandSignalResponse( + __httpStatusCode__, headers, retryAfter, etag, opcRequestId, occDemandSignal); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",occDemandSignal=").append(String.valueOf(occDemandSignal)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchOccDemandSignalResponse)) { + return false; + } + + PatchOccDemandSignalResponse other = (PatchOccDemandSignalResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.occDemandSignal, other.occDemandSignal); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.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.occDemandSignal == null ? 43 : this.occDemandSignal.hashCode()); + return result; + } +} diff --git a/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccDemandSignalResponse.java b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccDemandSignalResponse.java new file mode 100644 index 0000000000..1e347a7e0a --- /dev/null +++ b/bmc-demandsignal/src/main/java/com/oracle/bmc/demandsignal/responses/UpdateOccDemandSignalResponse.java @@ -0,0 +1,248 @@ +/** + * 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.demandsignal.responses; + +import com.oracle.bmc.demandsignal.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateOccDemandSignalResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @return the value + */ + public com.oracle.bmc.demandsignal.model.OccDemandSignal getOccDemandSignal() { + return occDemandSignal; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "retryAfter", + "etag", + "opcRequestId", + "occDemandSignal" + }) + private UpdateOccDemandSignalResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + Integer retryAfter, + String etag, + String opcRequestId, + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + super(__httpStatusCode__, headers); + this.retryAfter = retryAfter; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occDemandSignal = occDemandSignal; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned OccDemandSignal instance. + */ + private com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal; + + /** + * The returned OccDemandSignal instance. + * @param occDemandSignal the value to set + * @return this builder + */ + public Builder occDemandSignal( + com.oracle.bmc.demandsignal.model.OccDemandSignal occDemandSignal) { + this.occDemandSignal = occDemandSignal; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateOccDemandSignalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + retryAfter(o.getRetryAfter()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occDemandSignal(o.getOccDemandSignal()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateOccDemandSignalResponse build() { + return new UpdateOccDemandSignalResponse( + __httpStatusCode__, headers, retryAfter, etag, opcRequestId, occDemandSignal); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",occDemandSignal=").append(String.valueOf(occDemandSignal)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccDemandSignalResponse)) { + return false; + } + + UpdateOccDemandSignalResponse other = (UpdateOccDemandSignalResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.occDemandSignal, other.occDemandSignal); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.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.occDemandSignal == null ? 43 : this.occDemandSignal.hashCode()); + return result; + } +} diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 0159006871..4aeeac0c03 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 4a236eb16d..70ce246f60 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-devops @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 1d2992a1a0..b108caf21c 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index ab54f77f7b..b6353ae4b9 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.72.0 + 2.73.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 69a10849c2..822e5c021a 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-dts @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index d757a07f5f..ecd3192c12 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 17188efc7d..b031943deb 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 203e04f32f..ae84856a74 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-emwarehouse @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 7ce78736c5..e73c46d8cf 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,18 +19,18 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.72.0 + 2.73.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.72.0 + 2.73.0 com.fasterxml.jackson.core diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 51d628efdb..65d5e5ebeb 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 1f9619cf32..3564598776 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-events @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 432c94090f..7399d2f82e 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-examples @@ -28,7 +28,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.72.0 + 2.73.0 pom import @@ -645,5 +645,9 @@ com.oracle.oci.sdk oci-java-sdk-resourcescheduler + + com.oracle.oci.sdk + oci-java-sdk-demandsignal + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 575ad8bc2c..4ab2e98139 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index b5e64f6d8c..e46ed8b5e8 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 1048d65563..f8a5a40f29 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.72.0 + 2.73.0 pom import @@ -591,5 +591,9 @@ com.oracle.oci.sdk oci-java-sdk-resourcescheduler + + com.oracle.oci.sdk + oci-java-sdk-demandsignal + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index d1faeaabbc..fc0eb544d7 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-functions @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 6b8ec09663..92eca9fef4 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-fusionapps @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplications.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplications.java index 0b26a2d73f..a5665c4719 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplications.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplications.java @@ -231,6 +231,19 @@ DeleteFusionEnvironmentFamilyResponse deleteFusionEnvironmentFamily( */ DeleteServiceAttachmentResponse deleteServiceAttachment(DeleteServiceAttachmentRequest request); + /** + * Begin the process of showing the details about where to retrieve data extract for a Fusion environment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GenerateExtractDetails API. + */ + GenerateExtractDetailsResponse generateExtractDetails(GenerateExtractDetailsRequest request); + /** * Gets a DataMaskingActivity by identifier * @param request The request object containing the details to send @@ -356,6 +369,19 @@ GetFusionEnvironmentStatusResponse getFusionEnvironmentStatus( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** + * Begin the process of generating the data extract for a Fusion environment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use InitiateExtract API. + */ + InitiateExtractResponse initiateExtract(InitiateExtractRequest request); + /** * List all FusionEnvironment admin users * @param request The request object containing the details to send diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsync.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsync.java index dc823bbe05..0ba66c35d8 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsync.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsync.java @@ -287,6 +287,23 @@ java.util.concurrent.Future deleteServiceAttach DeleteServiceAttachmentRequest, DeleteServiceAttachmentResponse> handler); + /** + * Begin the process of showing the details about where to retrieve data extract for a Fusion environment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future generateExtractDetails( + GenerateExtractDetailsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateExtractDetailsRequest, GenerateExtractDetailsResponse> + handler); + /** * Gets a DataMaskingActivity by identifier * @@ -450,6 +467,22 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Begin the process of generating the data extract for a Fusion environment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future initiateExtract( + InitiateExtractRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * List all FusionEnvironment admin users * diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsyncClient.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsyncClient.java index e6824dbaa8..a42e2c34e1 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsyncClient.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsAsyncClient.java @@ -1158,6 +1158,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future generateExtractDetails( + GenerateExtractDetailsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateExtractDetailsRequest, GenerateExtractDetailsResponse> + handler) { + LOG.trace("Called async generateExtractDetails"); + final GenerateExtractDetailsRequest interceptedRequest = + GenerateExtractDetailsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateExtractDetailsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GenerateExtractDetails", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/GenerateExtractDetails"); + final java.util.function.Function + transformer = + GenerateExtractDetailsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateExtractDetailsRequest, GenerateExtractDetailsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateExtractDetailsRequest, GenerateExtractDetailsResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateExtractDetailsRequest, GenerateExtractDetailsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getDataMaskingActivity( GetDataMaskingActivityRequest request, @@ -1650,6 +1697,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future initiateExtract( + InitiateExtractRequest request, + final com.oracle.bmc.responses.AsyncHandler< + InitiateExtractRequest, InitiateExtractResponse> + handler) { + LOG.trace("Called async initiateExtract"); + final InitiateExtractRequest interceptedRequest = + InitiateExtractConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InitiateExtractConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "InitiateExtract", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/InitiateExtract"); + final java.util.function.Function + transformer = + InitiateExtractConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + InitiateExtractRequest, InitiateExtractResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + InitiateExtractRequest, InitiateExtractResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listAdminUsers( ListAdminUsersRequest request, diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsClient.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsClient.java index 947da27e6b..11dac7e217 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsClient.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/FusionApplicationsClient.java @@ -1099,6 +1099,45 @@ public DeleteServiceAttachmentResponse deleteServiceAttachment( }); } + @Override + public GenerateExtractDetailsResponse generateExtractDetails( + GenerateExtractDetailsRequest request) { + LOG.trace("Called generateExtractDetails"); + final GenerateExtractDetailsRequest interceptedRequest = + GenerateExtractDetailsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateExtractDetailsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "GenerateExtractDetails", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/GenerateExtractDetails"); + java.util.function.Function + transformer = + GenerateExtractDetailsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetDataMaskingActivityResponse getDataMaskingActivity( GetDataMaskingActivityRequest request) { @@ -1479,6 +1518,44 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { }); } + @Override + public InitiateExtractResponse initiateExtract(InitiateExtractRequest request) { + LOG.trace("Called initiateExtract"); + final InitiateExtractRequest interceptedRequest = + InitiateExtractConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + InitiateExtractConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FusionApplications", + "InitiateExtract", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/fusion-applications/20211201/FusionEnvironment/InitiateExtract"); + java.util.function.Function + transformer = + InitiateExtractConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListAdminUsersResponse listAdminUsers(ListAdminUsersRequest request) { LOG.trace("Called listAdminUsers"); diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GenerateExtractDetailsConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GenerateExtractDetailsConverter.java new file mode 100644 index 0000000000..a4789d29e8 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/GenerateExtractDetailsConverter.java @@ -0,0 +1,142 @@ +/** + * 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.fusionapps.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.fusionapps.model.*; +import com.oracle.bmc.fusionapps.requests.*; +import com.oracle.bmc.fusionapps.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GenerateExtractDetailsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GenerateExtractDetailsConverter.class); + + public static com.oracle.bmc.fusionapps.requests.GenerateExtractDetailsRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.GenerateExtractDetailsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.fusionapps.requests.GenerateExtractDetailsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20211201") + .path("fusionEnvironments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFusionEnvironmentId())) + .path("actions") + .path("generateExtractDetails"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.fusionapps.responses + .GenerateExtractDetailsResponse>() { + @Override + public com.oracle.bmc.fusionapps.responses + .GenerateExtractDetailsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .ExtractDetailsCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .ExtractDetailsCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.fusionapps.model + .ExtractDetailsCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.fusionapps.model + .ExtractDetailsCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse + .Builder + builder = + com.oracle.bmc.fusionapps.responses + .GenerateExtractDetailsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.extractDetailsCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.fusionapps.responses.GenerateExtractDetailsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeAgentCompartmentConverter.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/InitiateExtractConverter.java similarity index 65% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeAgentCompartmentConverter.java rename to bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/InitiateExtractConverter.java index f8020ce663..db2cae8889 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ChangeAgentCompartmentConverter.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/internal/http/InitiateExtractConverter.java @@ -2,66 +2,54 @@ * 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.internal.http; +package com.oracle.bmc.fusionapps.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.fusionapps.model.*; +import com.oracle.bmc.fusionapps.requests.*; +import com.oracle.bmc.fusionapps.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ChangeAgentCompartmentConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class InitiateExtractConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ChangeAgentCompartmentConverter.class); + org.slf4j.LoggerFactory.getLogger(InitiateExtractConverter.class); - public static com.oracle.bmc.databasemigration.requests.ChangeAgentCompartmentRequest - interceptRequest( - com.oracle.bmc.databasemigration.requests.ChangeAgentCompartmentRequest - request) { + public static com.oracle.bmc.fusionapps.requests.InitiateExtractRequest interceptRequest( + com.oracle.bmc.fusionapps.requests.InitiateExtractRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.ChangeAgentCompartmentRequest request) { + com.oracle.bmc.fusionapps.requests.InitiateExtractRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Validate.notNull( - request.getChangeAgentCompartmentDetails(), - "changeAgentCompartmentDetails is required"); + Validate.notBlank( + request.getFusionEnvironmentId(), "fusionEnvironmentId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") - .path("agents") + .path("/20211201") + .path("fusionEnvironments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getAgentId())) + request.getFusionEnvironmentId())) .path("actions") - .path("changeCompartment"); + .path("initiateExtract"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -70,29 +58,27 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ChangeAgentCompartmentResponse> + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ChangeAgentCompartmentResponse> + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.ChangeAgentCompartmentResponse> + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses - .ChangeAgentCompartmentResponse>() { + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse>() { @Override - public com.oracle.bmc.databasemigration.responses - .ChangeAgentCompartmentResponse + public com.oracle.bmc.fusionapps.responses.InitiateExtractResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.ChangeAgentCompartmentResponse"); + "Transform function invoked for com.oracle.bmc.fusionapps.responses.InitiateExtractResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -110,14 +96,24 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses - .ChangeAgentCompartmentResponse.Builder + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse.Builder builder = - com.oracle.bmc.databasemigration.responses - .ChangeAgentCompartmentResponse.builder() + com.oracle.bmc.fusionapps.responses + .InitiateExtractResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -129,8 +125,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.databasemigration.responses - .ChangeAgentCompartmentResponse + com.oracle.bmc.fusionapps.responses.InitiateExtractResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsCollection.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsCollection.java new file mode 100644 index 0000000000..461fc82e61 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fusionapps.model; + +/** + * Results of GenerateExtractDetails for a pod. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExtractDetailsCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ExtractDetailsCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ExtractDetailsCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A page of ExtractDetailsSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A page of ExtractDetailsSummary objects. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExtractDetailsCollection build() { + ExtractDetailsCollection model = new ExtractDetailsCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExtractDetailsCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A page of ExtractDetailsSummary objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A page of ExtractDetailsSummary objects. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExtractDetailsCollection("); + 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 ExtractDetailsCollection)) { + return false; + } + + ExtractDetailsCollection other = (ExtractDetailsCollection) 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/DatabaseCredentials.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java similarity index 53% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCredentials.java rename to bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java index 0838390f34..e611a294e5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCredentials.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.fusionapps.model; /** - * Database Credentials details. - * + * Details about where the data can be extracted from and password. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,50 +14,48 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DatabaseCredentials.Builder.class + builder = ExtractDetailsSummary.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DatabaseCredentials extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class ExtractDetailsSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) - public DatabaseCredentials(String username, String password) { + @java.beans.ConstructorProperties({"parUrl", "password", "timeCreated"}) + public ExtractDetailsSummary(String parUrl, String password, java.util.Date timeCreated) { super(); - this.username = username; + this.parUrl = parUrl; this.password = password; + this.timeCreated = timeCreated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Database username - * + * The parUrl to extract data extract from Object Storage bucket. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private String username; + @com.fasterxml.jackson.annotation.JsonProperty("parUrl") + private String parUrl; /** - * Database username - * - * @param username the value to set + * The parUrl to extract data extract from Object Storage bucket. + * @param parUrl the value to set * @return this builder **/ - public Builder username(String username) { - this.username = username; - this.__explicitlySet__.add("username"); + public Builder parUrl(String parUrl) { + this.parUrl = parUrl; + this.__explicitlySet__.add("parUrl"); return this; } /** - * Database password - * + * The password to decrypt data extract. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") private String password; /** - * Database password - * + * The password to decrypt data extract. * @param password the value to set * @return this builder **/ @@ -67,12 +64,29 @@ public Builder password(String password) { this.__explicitlySet__.add("password"); return this; } + /** + * The time when the data extract was requested. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the data extract was requested. 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; + } @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); + public ExtractDetailsSummary build() { + ExtractDetailsSummary model = + new ExtractDetailsSummary(this.parUrl, this.password, this.timeCreated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,13 +94,16 @@ public DatabaseCredentials build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DatabaseCredentials model) { - if (model.wasPropertyExplicitlySet("username")) { - this.username(model.getUsername()); + public Builder copy(ExtractDetailsSummary model) { + if (model.wasPropertyExplicitlySet("parUrl")) { + this.parUrl(model.getParUrl()); } if (model.wasPropertyExplicitlySet("password")) { this.password(model.getPassword()); } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } return this; } } @@ -103,37 +120,47 @@ public Builder toBuilder() { } /** - * Database username - * + * The parUrl to extract data extract from Object Storage bucket. **/ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private final String username; + @com.fasterxml.jackson.annotation.JsonProperty("parUrl") + private final String parUrl; /** - * Database username - * + * The parUrl to extract data extract from Object Storage bucket. * @return the value **/ - public String getUsername() { - return username; + public String getParUrl() { + return parUrl; } /** - * Database password - * + * The password to decrypt data extract. **/ @com.fasterxml.jackson.annotation.JsonProperty("password") private final String password; /** - * Database password - * + * The password to decrypt data extract. * @return the value **/ public String getPassword() { return password; } + /** + * The time when the data extract was requested. An RFC3339 formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the data extract was requested. An RFC3339 formatted datetime string + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + @Override public String toString() { return this.toString(true); @@ -146,10 +173,11 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DatabaseCredentials("); + sb.append("ExtractDetailsSummary("); sb.append("super=").append(super.toString()); - sb.append("username=").append(String.valueOf(this.username)); + sb.append("parUrl=").append(String.valueOf(this.parUrl)); sb.append(", password=").append(""); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(")"); return sb.toString(); } @@ -159,13 +187,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DatabaseCredentials)) { + if (!(o instanceof ExtractDetailsSummary)) { return false; } - DatabaseCredentials other = (DatabaseCredentials) o; - return java.util.Objects.equals(this.username, other.username) + ExtractDetailsSummary other = (ExtractDetailsSummary) o; + return java.util.Objects.equals(this.parUrl, other.parUrl) && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) && super.equals(other); } @@ -173,8 +202,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.parUrl == null ? 43 : this.parUrl.hashCode()); result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java index e6cbd0399d..e588c0f338 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java @@ -50,7 +50,8 @@ public final class FusionEnvironment extends com.oracle.bmc.http.internal.Explic "systemName", "environmentRole", "freeformTags", - "definedTags" + "definedTags", + "isSuspended" }) public FusionEnvironment( String id, @@ -81,7 +82,8 @@ public FusionEnvironment( String systemName, EnvironmentRole environmentRole, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + Boolean isSuspended) { super(); this.id = id; this.displayName = displayName; @@ -112,6 +114,7 @@ public FusionEnvironment( this.environmentRole = environmentRole; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.isSuspended = isSuspended; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -568,6 +571,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Environment suspended status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSuspended") + private Boolean isSuspended; + + /** + * Environment suspended status + * @param isSuspended the value to set + * @return this builder + **/ + public Builder isSuspended(Boolean isSuspended) { + this.isSuspended = isSuspended; + this.__explicitlySet__.add("isSuspended"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -603,7 +622,8 @@ public FusionEnvironment build() { this.systemName, this.environmentRole, this.freeformTags, - this.definedTags); + this.definedTags, + this.isSuspended); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -699,6 +719,9 @@ public Builder copy(FusionEnvironment model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("isSuspended")) { + this.isSuspended(model.getIsSuspended()); + } return this; } } @@ -1209,6 +1232,20 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Environment suspended status + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSuspended") + private final Boolean isSuspended; + + /** + * Environment suspended status + * @return the value + **/ + public Boolean getIsSuspended() { + return isSuspended; + } + @Override public String toString() { return this.toString(true); @@ -1255,6 +1292,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", environmentRole=").append(String.valueOf(this.environmentRole)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", isSuspended=").append(String.valueOf(this.isSuspended)); sb.append(")"); return sb.toString(); } @@ -1301,6 +1339,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.environmentRole, other.environmentRole) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.isSuspended, other.isSuspended) && super.equals(other); } @@ -1375,6 +1414,7 @@ public int hashCode() { + (this.environmentRole == null ? 43 : this.environmentRole.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.isSuspended == null ? 43 : this.isSuspended.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Subscription.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Subscription.java index 655b506bfc..06577354a9 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Subscription.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Subscription.java @@ -19,16 +19,27 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class Subscription extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "classicSubscriptionId", "serviceName", "skus"}) + @java.beans.ConstructorProperties({ + "id", + "classicSubscriptionId", + "serviceName", + "lifecycleState", + "lifecycleDetails", + "skus" + }) public Subscription( String id, String classicSubscriptionId, String serviceName, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, java.util.List skus) { super(); this.id = id; this.classicSubscriptionId = classicSubscriptionId; this.serviceName = serviceName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.skus = skus; } @@ -82,6 +93,38 @@ public Builder serviceName(String serviceName) { this.__explicitlySet__.add("serviceName"); return this; } + /** + * Lifecycle state of the subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the subscription. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Subscription resource intermediate states. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * Subscription resource intermediate states. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** * Stock keeping unit. **/ @@ -105,7 +148,12 @@ public Builder skus(java.util.List skus) { public Subscription build() { Subscription model = new Subscription( - this.id, this.classicSubscriptionId, this.serviceName, this.skus); + this.id, + this.classicSubscriptionId, + this.serviceName, + this.lifecycleState, + this.lifecycleDetails, + this.skus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -123,6 +171,12 @@ public Builder copy(Subscription model) { if (model.wasPropertyExplicitlySet("serviceName")) { this.serviceName(model.getServiceName()); } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("skus")) { this.skus(model.getSkus()); } @@ -183,6 +237,160 @@ public String getServiceName() { return serviceName; } + /** + * Lifecycle state of the subscription. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Lifecycle state of the subscription. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the subscription. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Subscription resource intermediate states. + **/ + public enum LifecycleDetails { + Active("ACTIVE"), + Purged("PURGED"), + Canceled("CANCELED"), + PaidPurged("PAID_PURGED"), + Initialized("INITIALIZED"), + SoftTerminated("SOFT_TERMINATED"), + Disabled("DISABLED"), + BeginTermination("BEGIN_TERMINATION"), + Migrated("MIGRATED"), + PendingCancelation("PENDING_CANCELATION"), + Archived("ARCHIVED"), + NonRecoverable("NON_RECOVERABLE"), + BeginSoftTermination("BEGIN_SOFT_TERMINATION"), + Activated("ACTIVATED"), + AccessDisabled("ACCESS_DISABLED"), + PendingRegistration("PENDING_REGISTRATION"), + Terminated("TERMINATED"), + Relocating("RELOCATING"), + Deprovisioned("DEPROVISIONED"), + Provisioned("PROVISIONED"), + BeginTerminationPassive("BEGIN_TERMINATION_PASSIVE"), + Locked("LOCKED"), + PendingDeprovisioning("PENDING_DEPROVISIONING"), + Registered("REGISTERED"), + Cancelled("CANCELLED"), + Expired("EXPIRED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleDetails.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleDetails v : LifecycleDetails.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleDetails(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleDetails create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleDetails', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Subscription resource intermediate states. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * Subscription resource intermediate states. + * @return the value + **/ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + /** * Stock keeping unit. **/ @@ -214,6 +422,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", classicSubscriptionId=").append(String.valueOf(this.classicSubscriptionId)); sb.append(", serviceName=").append(String.valueOf(this.serviceName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", skus=").append(String.valueOf(this.skus)); sb.append(")"); return sb.toString(); @@ -232,6 +442,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.classicSubscriptionId, other.classicSubscriptionId) && java.util.Objects.equals(this.serviceName, other.serviceName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.skus, other.skus) && super.equals(other); } @@ -247,6 +459,12 @@ public int hashCode() { ? 43 : this.classicSubscriptionId.hashCode()); result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.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.skus == null ? 43 : this.skus.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/WorkRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/WorkRequest.java index 26a0923265..ef9782642d 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/WorkRequest.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/WorkRequest.java @@ -307,6 +307,12 @@ public enum OperationType { RefreshFusionEnvironment("REFRESH_FUSION_ENVIRONMENT"), ExecuteColdPatch("EXECUTE_COLD_PATCH"), DataMaskFusionEnvironment("DATA_MASK_FUSION_ENVIRONMENT"), + InitiateExtract("INITIATE_EXTRACT"), + SubscriptionSuspend("SUBSCRIPTION_SUSPEND"), + SubscriptionExpire("SUBSCRIPTION_EXPIRE"), + SubscriptionUpdate("SUBSCRIPTION_UPDATE"), + SubscriptionResume("SUBSCRIPTION_RESUME"), + SubscriptionTerminate("SUBSCRIPTION_TERMINATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GenerateExtractDetailsRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GenerateExtractDetailsRequest.java new file mode 100644 index 0000000000..117af76e88 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/GenerateExtractDetailsRequest.java @@ -0,0 +1,198 @@ +/** + * 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.fusionapps.requests; + +import com.oracle.bmc.fusionapps.model.*; +/** + * Example: Click here to see how to use GenerateExtractDetailsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GenerateExtractDetailsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId; + + /** + * unique FusionEnvironment identifier + */ + public String getFusionEnvironmentId() { + return fusionEnvironmentId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateExtractDetailsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * unique FusionEnvironment identifier + */ + private String fusionEnvironmentId = null; + + /** + * unique FusionEnvironment identifier + * @param fusionEnvironmentId the value to set + * @return this builder instance + */ + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateExtractDetailsRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateExtractDetailsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GenerateExtractDetailsRequest + */ + public GenerateExtractDetailsRequest build() { + GenerateExtractDetailsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GenerateExtractDetailsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateExtractDetailsRequest + */ + public GenerateExtractDetailsRequest buildWithoutInvocationCallback() { + GenerateExtractDetailsRequest request = new GenerateExtractDetailsRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; + request.opcRequestId = opcRequestId; + return request; + // new GenerateExtractDetailsRequest(fusionEnvironmentId, 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().fusionEnvironmentId(fusionEnvironmentId).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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); + 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 GenerateExtractDetailsRequest)) { + return false; + } + + GenerateExtractDetailsRequest other = (GenerateExtractDetailsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.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/GetAgentRequest.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/InitiateExtractRequest.java similarity index 64% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAgentRequest.java rename to bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/InitiateExtractRequest.java index 7768e463a8..cd3bef6c39 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAgentRequest.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/requests/InitiateExtractRequest.java @@ -2,78 +2,67 @@ * 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.fusionapps.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.fusionapps.model.*; /** - * Example: Click here to see how to use GetAgentRequest. + * Example: Click here to see how to use InitiateExtractRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class GetAgentRequest extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class InitiateExtractRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the agent - * + * unique FusionEnvironment identifier */ - private String agentId; + private String fusionEnvironmentId; /** - * The OCID of the agent - * + * unique FusionEnvironment identifier */ - public String getAgentId() { - return agentId; + public String getFusionEnvironmentId() { + return fusionEnvironmentId; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The client request ID for tracing. */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The client request ID for tracing. */ public String getOpcRequestId() { return opcRequestId; } public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder { + implements com.oracle.bmc.requests.BmcRequest.Builder< + InitiateExtractRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the agent - * + * unique FusionEnvironment identifier */ - private String agentId = null; + private String fusionEnvironmentId = null; /** - * The OCID of the agent - * - * @param agentId the value to set + * unique FusionEnvironment identifier + * @param fusionEnvironmentId the value to set * @return this builder instance */ - public Builder agentId(String agentId) { - this.agentId = agentId; + public Builder fusionEnvironmentId(String fusionEnvironmentId) { + this.fusionEnvironmentId = fusionEnvironmentId; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The client request ID for tracing. */ private String opcRequestId = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * + * The client request ID for tracing. * @param opcRequestId the value to set * @return this builder instance */ @@ -109,8 +98,8 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetAgentRequest o) { - agentId(o.getAgentId()); + public Builder copy(InitiateExtractRequest o) { + fusionEnvironmentId(o.getFusionEnvironmentId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -118,36 +107,36 @@ public Builder copy(GetAgentRequest o) { } /** - * Build the instance of GetAgentRequest as configured by this builder + * Build the instance of InitiateExtractRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GetAgentRequest + * @return instance of InitiateExtractRequest */ - public GetAgentRequest build() { - GetAgentRequest request = buildWithoutInvocationCallback(); + public InitiateExtractRequest build() { + InitiateExtractRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetAgentRequest as configured by this builder + * Build the instance of InitiateExtractRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GetAgentRequest + * @return instance of InitiateExtractRequest */ - public GetAgentRequest buildWithoutInvocationCallback() { - GetAgentRequest request = new GetAgentRequest(); - request.agentId = agentId; + public InitiateExtractRequest buildWithoutInvocationCallback() { + InitiateExtractRequest request = new InitiateExtractRequest(); + request.fusionEnvironmentId = fusionEnvironmentId; request.opcRequestId = opcRequestId; return request; - // new GetAgentRequest(agentId, opcRequestId); + // new InitiateExtractRequest(fusionEnvironmentId, opcRequestId); } } @@ -156,7 +145,7 @@ public GetAgentRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().agentId(agentId).opcRequestId(opcRequestId); + return new Builder().fusionEnvironmentId(fusionEnvironmentId).opcRequestId(opcRequestId); } /** @@ -172,7 +161,7 @@ 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(",fusionEnvironmentId=").append(String.valueOf(this.fusionEnvironmentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -183,13 +172,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetAgentRequest)) { + if (!(o instanceof InitiateExtractRequest)) { return false; } - GetAgentRequest other = (GetAgentRequest) o; + InitiateExtractRequest other = (InitiateExtractRequest) o; return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.fusionEnvironmentId, other.fusionEnvironmentId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -197,7 +186,11 @@ public boolean equals(Object o) { 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.fusionEnvironmentId == null + ? 43 + : this.fusionEnvironmentId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GenerateExtractDetailsResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GenerateExtractDetailsResponse.java new file mode 100644 index 0000000000..ff3f7e1fe5 --- /dev/null +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/GenerateExtractDetailsResponse.java @@ -0,0 +1,177 @@ +/** + * 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.fusionapps.responses; + +import com.oracle.bmc.fusionapps.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class GenerateExtractDetailsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned ExtractDetailsCollection instance. + */ + private com.oracle.bmc.fusionapps.model.ExtractDetailsCollection extractDetailsCollection; + + /** + * The returned ExtractDetailsCollection instance. + * @return the value + */ + public com.oracle.bmc.fusionapps.model.ExtractDetailsCollection getExtractDetailsCollection() { + return extractDetailsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "extractDetailsCollection" + }) + private GenerateExtractDetailsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.fusionapps.model.ExtractDetailsCollection extractDetailsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.extractDetailsCollection = extractDetailsCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned ExtractDetailsCollection instance. + */ + private com.oracle.bmc.fusionapps.model.ExtractDetailsCollection extractDetailsCollection; + + /** + * The returned ExtractDetailsCollection instance. + * @param extractDetailsCollection the value to set + * @return this builder + */ + public Builder extractDetailsCollection( + com.oracle.bmc.fusionapps.model.ExtractDetailsCollection extractDetailsCollection) { + this.extractDetailsCollection = extractDetailsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateExtractDetailsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + extractDetailsCollection(o.getExtractDetailsCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GenerateExtractDetailsResponse build() { + return new GenerateExtractDetailsResponse( + __httpStatusCode__, headers, opcRequestId, extractDetailsCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",extractDetailsCollection=").append(String.valueOf(extractDetailsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateExtractDetailsResponse)) { + return false; + } + + GenerateExtractDetailsResponse other = (GenerateExtractDetailsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.extractDetailsCollection, other.extractDetailsCollection); + } + + @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.extractDetailsCollection == null + ? 43 + : this.extractDetailsCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/InitiateExtractResponse.java similarity index 87% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java rename to bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/InitiateExtractResponse.java index e2619bea07..8301643149 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/responses/InitiateExtractResponse.java @@ -2,58 +2,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.responses; +package com.oracle.bmc.fusionapps.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.fusionapps.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class DeleteAgentResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") +public class InitiateExtractResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String opcRequestId; + private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ - public String getOpcRequestId() { - return opcRequestId; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } /** - * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String opcWorkRequestId; + private String opcRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * * @return the value */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; + public String getOpcRequestId() { + return opcRequestId; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcRequestId", - "opcWorkRequestId" + "opcWorkRequestId", + "opcRequestId" }) - private DeleteAgentResponse( + private InitiateExtractResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcWorkRequestId) { + String opcWorkRequestId, + String opcRequestId) { super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; } public static class Builder { @@ -72,38 +72,38 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String opcRequestId; + private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * - * @param opcRequestId the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } /** - * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String opcWorkRequestId; + private String opcRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * - * @param opcWorkRequestId the value to set + * @param opcRequestId the value to set * @return this builder */ - public Builder opcWorkRequestId(String opcWorkRequestId) { - this.opcWorkRequestId = opcWorkRequestId; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -111,11 +111,11 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DeleteAgentResponse o) { + public Builder copy(InitiateExtractResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); return this; } @@ -124,9 +124,9 @@ public Builder copy(DeleteAgentResponse o) { * Build the response object. * @return the response object */ - public DeleteAgentResponse build() { - return new DeleteAgentResponse( - __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + public InitiateExtractResponse build() { + return new InitiateExtractResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -143,8 +143,8 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(")"); return sb.toString(); } @@ -154,24 +154,24 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteAgentResponse)) { + if (!(o instanceof InitiateExtractResponse)) { return false; } - DeleteAgentResponse other = (DeleteAgentResponse) o; + InitiateExtractResponse other = (InitiateExtractResponse) o; return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 86988b3c19..dd7e1767d0 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChatModelMetrics.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChatModelMetrics.java new file mode 100644 index 0000000000..ee4073f5ae --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChatModelMetrics.java @@ -0,0 +1,176 @@ +/** + * 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.generativeai.model; + +/** + * The chat model metrics of the fine-tuning process. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ChatModelMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelMetricsType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChatModelMetrics extends ModelMetrics { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Fine-tuned model accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("finalAccuracy") + private Double finalAccuracy; + + /** + * Fine-tuned model accuracy. + * @param finalAccuracy the value to set + * @return this builder + **/ + public Builder finalAccuracy(Double finalAccuracy) { + this.finalAccuracy = finalAccuracy; + this.__explicitlySet__.add("finalAccuracy"); + return this; + } + /** + * Fine-tuned model loss. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("finalLoss") + private Double finalLoss; + + /** + * Fine-tuned model loss. + * @param finalLoss the value to set + * @return this builder + **/ + public Builder finalLoss(Double finalLoss) { + this.finalLoss = finalLoss; + this.__explicitlySet__.add("finalLoss"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChatModelMetrics build() { + ChatModelMetrics model = new ChatModelMetrics(this.finalAccuracy, this.finalLoss); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChatModelMetrics model) { + if (model.wasPropertyExplicitlySet("finalAccuracy")) { + this.finalAccuracy(model.getFinalAccuracy()); + } + if (model.wasPropertyExplicitlySet("finalLoss")) { + this.finalLoss(model.getFinalLoss()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ChatModelMetrics(Double finalAccuracy, Double finalLoss) { + super(); + this.finalAccuracy = finalAccuracy; + this.finalLoss = finalLoss; + } + + /** + * Fine-tuned model accuracy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("finalAccuracy") + private final Double finalAccuracy; + + /** + * Fine-tuned model accuracy. + * @return the value + **/ + public Double getFinalAccuracy() { + return finalAccuracy; + } + + /** + * Fine-tuned model loss. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("finalLoss") + private final Double finalLoss; + + /** + * Fine-tuned model loss. + * @return the value + **/ + public Double getFinalLoss() { + return finalLoss; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChatModelMetrics("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", finalAccuracy=").append(String.valueOf(this.finalAccuracy)); + sb.append(", finalLoss=").append(String.valueOf(this.finalLoss)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChatModelMetrics)) { + return false; + } + + ChatModelMetrics other = (ChatModelMetrics) o; + return java.util.Objects.equals(this.finalAccuracy, other.finalAccuracy) + && java.util.Objects.equals(this.finalLoss, other.finalLoss) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.finalAccuracy == null ? 43 : this.finalAccuracy.hashCode()); + result = (result * PRIME) + (this.finalLoss == null ? 43 : this.finalLoss.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java index 6c72aa8a78..1af049f1ac 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java @@ -149,9 +149,13 @@ public Builder unitCount(Integer unitCount) { *

* Allowed values are: * - LARGE_COHERE + * - LARGE_COHERE_V2 * - SMALL_COHERE + * - SMALL_COHERE_V2 * - EMBED_COHERE * - LLAMA2_70 + * - LARGE_GENERIC + * - LARGE_COHERE_V2_2 * **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") @@ -162,9 +166,13 @@ public Builder unitCount(Integer unitCount) { *

* Allowed values are: * - LARGE_COHERE + * - LARGE_COHERE_V2 * - SMALL_COHERE + * - SMALL_COHERE_V2 * - EMBED_COHERE * - LLAMA2_70 + * - LARGE_GENERIC + * - LARGE_COHERE_V2_2 * * @param unitShape the value to set * @return this builder @@ -370,9 +378,13 @@ public Integer getUnitCount() { *

* Allowed values are: * - LARGE_COHERE + * - LARGE_COHERE_V2 * - SMALL_COHERE + * - SMALL_COHERE_V2 * - EMBED_COHERE * - LLAMA2_70 + * - LARGE_GENERIC + * - LARGE_COHERE_V2_2 * **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") @@ -383,9 +395,13 @@ public Integer getUnitCount() { *

* Allowed values are: * - LARGE_COHERE + * - LARGE_COHERE_V2 * - SMALL_COHERE + * - SMALL_COHERE_V2 * - EMBED_COHERE * - LLAMA2_70 + * - LARGE_GENERIC + * - LARGE_COHERE_V2_2 * * @return the value **/ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java index 2b28001c6c..465b7fd452 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java @@ -684,10 +684,13 @@ public Integer getUnitCount() { **/ public enum UnitShape { LargeCohere("LARGE_COHERE"), + LargeCohereV2("LARGE_COHERE_V2"), SmallCohere("SMALL_COHERE"), + SmallCohereV2("SMALL_COHERE_V2"), EmbedCohere("EMBED_COHERE"), Llama270("LLAMA2_70"), - LargeCohereV2("LARGE_COHERE_V2"), + LargeGeneric("LARGE_GENERIC"), + LargeCohereV22("LARGE_COHERE_V2_2"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/LoraTrainingConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/LoraTrainingConfig.java new file mode 100644 index 0000000000..e8f09dd62e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/LoraTrainingConfig.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * The Lora training method hyperparameters. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LoraTrainingConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "trainingConfigType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LoraTrainingConfig extends TrainingConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("totalTrainingEpochs") + private Integer totalTrainingEpochs; + + public Builder totalTrainingEpochs(Integer totalTrainingEpochs) { + this.totalTrainingEpochs = totalTrainingEpochs; + this.__explicitlySet__.add("totalTrainingEpochs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("learningRate") + private Double learningRate; + + public Builder learningRate(Double learningRate) { + this.learningRate = learningRate; + this.__explicitlySet__.add("learningRate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("trainingBatchSize") + private Integer trainingBatchSize; + + public Builder trainingBatchSize(Integer trainingBatchSize) { + this.trainingBatchSize = trainingBatchSize; + this.__explicitlySet__.add("trainingBatchSize"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("earlyStoppingPatience") + private Integer earlyStoppingPatience; + + public Builder earlyStoppingPatience(Integer earlyStoppingPatience) { + this.earlyStoppingPatience = earlyStoppingPatience; + this.__explicitlySet__.add("earlyStoppingPatience"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("earlyStoppingThreshold") + private Double earlyStoppingThreshold; + + public Builder earlyStoppingThreshold(Double earlyStoppingThreshold) { + this.earlyStoppingThreshold = earlyStoppingThreshold; + this.__explicitlySet__.add("earlyStoppingThreshold"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logModelMetricsIntervalInSteps") + private Integer logModelMetricsIntervalInSteps; + + public Builder logModelMetricsIntervalInSteps(Integer logModelMetricsIntervalInSteps) { + this.logModelMetricsIntervalInSteps = logModelMetricsIntervalInSteps; + this.__explicitlySet__.add("logModelMetricsIntervalInSteps"); + return this; + } + /** + * This parameter represents the LoRA rank of the update matrices. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraR") + private Integer loraR; + + /** + * This parameter represents the LoRA rank of the update matrices. + * @param loraR the value to set + * @return this builder + **/ + public Builder loraR(Integer loraR) { + this.loraR = loraR; + this.__explicitlySet__.add("loraR"); + return this; + } + /** + * This parameter represents the scaling factor for the weight matrices in LoRA. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraAlpha") + private Integer loraAlpha; + + /** + * This parameter represents the scaling factor for the weight matrices in LoRA. + * @param loraAlpha the value to set + * @return this builder + **/ + public Builder loraAlpha(Integer loraAlpha) { + this.loraAlpha = loraAlpha; + this.__explicitlySet__.add("loraAlpha"); + return this; + } + /** + * This parameter indicates the dropout probability for LoRA layers. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraDropout") + private Double loraDropout; + + /** + * This parameter indicates the dropout probability for LoRA layers. + * @param loraDropout the value to set + * @return this builder + **/ + public Builder loraDropout(Double loraDropout) { + this.loraDropout = loraDropout; + this.__explicitlySet__.add("loraDropout"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LoraTrainingConfig build() { + LoraTrainingConfig model = + new LoraTrainingConfig( + this.totalTrainingEpochs, + this.learningRate, + this.trainingBatchSize, + this.earlyStoppingPatience, + this.earlyStoppingThreshold, + this.logModelMetricsIntervalInSteps, + this.loraR, + this.loraAlpha, + this.loraDropout); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LoraTrainingConfig model) { + if (model.wasPropertyExplicitlySet("totalTrainingEpochs")) { + this.totalTrainingEpochs(model.getTotalTrainingEpochs()); + } + if (model.wasPropertyExplicitlySet("learningRate")) { + this.learningRate(model.getLearningRate()); + } + if (model.wasPropertyExplicitlySet("trainingBatchSize")) { + this.trainingBatchSize(model.getTrainingBatchSize()); + } + if (model.wasPropertyExplicitlySet("earlyStoppingPatience")) { + this.earlyStoppingPatience(model.getEarlyStoppingPatience()); + } + if (model.wasPropertyExplicitlySet("earlyStoppingThreshold")) { + this.earlyStoppingThreshold(model.getEarlyStoppingThreshold()); + } + if (model.wasPropertyExplicitlySet("logModelMetricsIntervalInSteps")) { + this.logModelMetricsIntervalInSteps(model.getLogModelMetricsIntervalInSteps()); + } + if (model.wasPropertyExplicitlySet("loraR")) { + this.loraR(model.getLoraR()); + } + if (model.wasPropertyExplicitlySet("loraAlpha")) { + this.loraAlpha(model.getLoraAlpha()); + } + if (model.wasPropertyExplicitlySet("loraDropout")) { + this.loraDropout(model.getLoraDropout()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public LoraTrainingConfig( + Integer totalTrainingEpochs, + Double learningRate, + Integer trainingBatchSize, + Integer earlyStoppingPatience, + Double earlyStoppingThreshold, + Integer logModelMetricsIntervalInSteps, + Integer loraR, + Integer loraAlpha, + Double loraDropout) { + super( + totalTrainingEpochs, + learningRate, + trainingBatchSize, + earlyStoppingPatience, + earlyStoppingThreshold, + logModelMetricsIntervalInSteps); + this.loraR = loraR; + this.loraAlpha = loraAlpha; + this.loraDropout = loraDropout; + } + + /** + * This parameter represents the LoRA rank of the update matrices. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraR") + private final Integer loraR; + + /** + * This parameter represents the LoRA rank of the update matrices. + * @return the value + **/ + public Integer getLoraR() { + return loraR; + } + + /** + * This parameter represents the scaling factor for the weight matrices in LoRA. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraAlpha") + private final Integer loraAlpha; + + /** + * This parameter represents the scaling factor for the weight matrices in LoRA. + * @return the value + **/ + public Integer getLoraAlpha() { + return loraAlpha; + } + + /** + * This parameter indicates the dropout probability for LoRA layers. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loraDropout") + private final Double loraDropout; + + /** + * This parameter indicates the dropout probability for LoRA layers. + * @return the value + **/ + public Double getLoraDropout() { + return loraDropout; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LoraTrainingConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", loraR=").append(String.valueOf(this.loraR)); + sb.append(", loraAlpha=").append(String.valueOf(this.loraAlpha)); + sb.append(", loraDropout=").append(String.valueOf(this.loraDropout)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LoraTrainingConfig)) { + return false; + } + + LoraTrainingConfig other = (LoraTrainingConfig) o; + return java.util.Objects.equals(this.loraR, other.loraR) + && java.util.Objects.equals(this.loraAlpha, other.loraAlpha) + && java.util.Objects.equals(this.loraDropout, other.loraDropout) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.loraR == null ? 43 : this.loraR.hashCode()); + result = (result * PRIME) + (this.loraAlpha == null ? 43 : this.loraAlpha.hashCode()); + result = (result * PRIME) + (this.loraDropout == null ? 43 : this.loraDropout.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelMetrics.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelMetrics.java index eb0ee2dfa1..f2c1e59ff2 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelMetrics.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelMetrics.java @@ -25,6 +25,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = TextGenerationModelMetrics.class, name = "TEXT_GENERATION_MODEL_METRICS" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ChatModelMetrics.class, + name = "CHAT_MODEL_METRICS" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @@ -79,6 +83,7 @@ public int hashCode() { **/ public enum ModelMetricsType { TextGenerationModelMetrics("TEXT_GENERATION_MODEL_METRICS"), + ChatModelMetrics("CHAT_MODEL_METRICS"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/TrainingConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/TrainingConfig.java index 14b10f03d0..5fc4094757 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/TrainingConfig.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/TrainingConfig.java @@ -22,6 +22,10 @@ defaultImpl = TrainingConfig.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = LoraTrainingConfig.class, + name = "LORA_TRAINING_CONFIG" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VanillaTrainingConfig.class, name = "VANILLA_TRAINING_CONFIG" @@ -234,6 +238,7 @@ public int hashCode() { public enum TrainingConfigType { TfewTrainingConfig("TFEW_TRAINING_CONFIG"), VanillaTrainingConfig("VANILLA_TRAINING_CONFIG"), + LoraTrainingConfig("LORA_TRAINING_CONFIG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 0e7bd07a05..709f94c13a 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInference.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInference.java index a8f4745d3b..7efdd0586e 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInference.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInference.java @@ -10,7 +10,7 @@ /** * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. * - * Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #generateText(GenerateTextRequest) generateText}, {@link #summarizeText(SummarizeTextRequest) summarizeText}, and {@link #embedText(EmbedTextRequest) embedText}. + * Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #chat(ChatRequest) chat}, {@link #generateText(GenerateTextRequest) generateText}, {@link #summarizeText(SummarizeTextRequest) summarizeText}, and {@link #embedText(EmbedTextRequest) embedText}. * * To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](https://docs.cloud.oracle.com/#/en/generative-ai/latest/) to {@link Model} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link DedicatedAiCluster}. Then, create a {@link DedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](https://docs.cloud.oracle.com/#/en/generative-ai/latest/). * diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsync.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsync.java index 3b4ebbd867..406e082624 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsync.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/GenerativeAiInferenceAsync.java @@ -10,7 +10,7 @@ /** * OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. * - * Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #generateText(GenerateTextRequest) generateText}, {@link #summarizeText(SummarizeTextRequest) summarizeText}, and {@link #embedText(EmbedTextRequest) embedText}. + * Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #chat(ChatRequest) chat}, {@link #generateText(GenerateTextRequest) generateText}, {@link #summarizeText(SummarizeTextRequest) summarizeText}, and {@link #embedText(EmbedTextRequest) embedText}. * * To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](https://docs.cloud.oracle.com/#/en/generative-ai/latest/) to {@link Model} by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a {@link DedicatedAiCluster}. Then, create a {@link DedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](https://docs.cloud.oracle.com/#/en/generative-ai/latest/). * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/AssistantMessage.java similarity index 55% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java rename to bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/AssistantMessage.java index a02cb372bb..66af6420fc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/AssistantMessage.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.generativeaiinference.model; /** - * Optional details for updating a network database link from OCI database to on-premise database. - * + * Represents a single instance of assistant message. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,33 +14,33 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDatabaseLinkDetails.Builder.class +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AssistantMessage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateDatabaseLinkDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "walletBucket"}) - public UpdateDatabaseLinkDetails(String name, UpdateObjectStoreBucket walletBucket) { - super(); - this.name = name; - this.walletBucket = walletBucket; - } - +public final class AssistantMessage extends Message { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("content") + private java.util.List content; + + public Builder content(java.util.List content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - * + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. **/ @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. - * + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. * @param name the value to set * @return this builder **/ @@ -51,21 +50,11 @@ 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 AssistantMessage build() { + AssistantMessage model = new AssistantMessage(this.content, this.name); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -73,13 +62,13 @@ public UpdateDatabaseLinkDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDatabaseLinkDetails model) { + public Builder copy(AssistantMessage model) { + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } - if (model.wasPropertyExplicitlySet("walletBucket")) { - this.walletBucket(model.getWalletBucket()); - } return this; } } @@ -95,29 +84,26 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public AssistantMessage(java.util.List content, String name) { + super(content); + this.name = name; + } + /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - * + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. **/ @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. - * + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. * @return the value **/ 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); @@ -130,10 +116,9 @@ 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("AssistantMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(")"); return sb.toString(); } @@ -143,23 +128,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDatabaseLinkDetails)) { + if (!(o instanceof AssistantMessage)) { return false; } - UpdateDatabaseLinkDetails other = (UpdateDatabaseLinkDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.walletBucket, other.walletBucket) - && super.equals(other); + AssistantMessage other = (AssistantMessage) o; + return 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.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-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatRequest.java index 7cddb94063..0e8b233fc0 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatRequest.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Base class for chat inference requests + * The base class to use for the chat inference request. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -79,7 +79,7 @@ public int hashCode() { } /** - * The api format for the model's request + * The API format for the model's request. **/ public enum ApiFormat { Cohere("COHERE"), diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatResponse.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatResponse.java index 513d5ea4ac..ba7191ab60 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatResponse.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/BaseChatResponse.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Base class for chat inference response + * The base class that creates the chat response. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -79,7 +79,7 @@ public int hashCode() { } /** - * The api format for the model's response + * The API format for the model's response. **/ public enum ApiFormat { Cohere("COHERE"), diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatDetails.java index 2d796c9328..eba7cf02fb 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatDetails.java @@ -30,13 +30,13 @@ public ChatDetails(String compartmentId, ServingMode servingMode, BaseChatReques @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to chat. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to chat. * @param compartmentId the value to set * @return this builder **/ @@ -103,13 +103,13 @@ public Builder toBuilder() { } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to chat. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to chat. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatResult.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatResult.java index 3cc78679fe..97cf59535a 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatResult.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ChatResult.java @@ -30,13 +30,13 @@ public ChatResult(String modelId, String modelVersion, BaseChatResponse chatResp @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of the model used in this inference request. + * The OCID of the model that's used in this inference request. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelId") private String modelId; /** - * The OCID of the model used in this inference request. + * The OCID of the model that's used in this inference request. * @param modelId the value to set * @return this builder **/ @@ -109,13 +109,13 @@ public Builder toBuilder() { } /** - * The OCID of the model used in this inference request. + * The OCID of the model that's used in this inference request. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelId") private final String modelId; /** - * The OCID of the model used in this inference request. + * The OCID of the model that's used in this inference request. * @return the value **/ public String getModelId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Choice.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Choice.java index 7ae313e104..b59e3fdc29 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Choice.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Choice.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Represents a single instance of generated text. + * Represents a single instance of the generated text. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Citation.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Citation.java index c9a3f73484..2daacf7fdc 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Citation.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Citation.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * A section of the generated reply which cites external knowledge. + * A section of the generated response which cites the documents that were used for generating the response. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -31,13 +31,13 @@ public Citation(Integer start, Integer end, String text, java.util.List @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The index of text that the citation starts at, counting from zero. + * Counting from zero, the index of the text where the citation starts. **/ @com.fasterxml.jackson.annotation.JsonProperty("start") private Integer start; /** - * The index of text that the citation starts at, counting from zero. + * Counting from zero, the index of the text where the citation starts. * @param start the value to set * @return this builder **/ @@ -47,13 +47,13 @@ public Builder start(Integer start) { return this; } /** - * The index of text that the citation ends after, counting from zero. + * Counting from zero, the index of the text that the citation ends after. **/ @com.fasterxml.jackson.annotation.JsonProperty("end") private Integer end; /** - * The index of text that the citation ends after, counting from zero. + * Counting from zero, the index of the text that the citation ends after. * @param end the value to set * @return this builder **/ @@ -63,13 +63,13 @@ public Builder end(Integer end) { return this; } /** - * The text of the citation + * The text of the citation. **/ @com.fasterxml.jackson.annotation.JsonProperty("text") private String text; /** - * The text of the citation + * The text of the citation. * @param text the value to set * @return this builder **/ @@ -79,13 +79,13 @@ public Builder text(String text) { return this; } /** - * Identifiers of documents cited by this section of the generated reply. + * Identifiers for the documents cited in the current generated response. **/ @com.fasterxml.jackson.annotation.JsonProperty("documentIds") private java.util.List documentIds; /** - * Identifiers of documents cited by this section of the generated reply. + * Identifiers for the documents cited in the current generated response. * @param documentIds the value to set * @return this builder **/ @@ -136,13 +136,13 @@ public Builder toBuilder() { } /** - * The index of text that the citation starts at, counting from zero. + * Counting from zero, the index of the text where the citation starts. **/ @com.fasterxml.jackson.annotation.JsonProperty("start") private final Integer start; /** - * The index of text that the citation starts at, counting from zero. + * Counting from zero, the index of the text where the citation starts. * @return the value **/ public Integer getStart() { @@ -150,13 +150,13 @@ public Integer getStart() { } /** - * The index of text that the citation ends after, counting from zero. + * Counting from zero, the index of the text that the citation ends after. **/ @com.fasterxml.jackson.annotation.JsonProperty("end") private final Integer end; /** - * The index of text that the citation ends after, counting from zero. + * Counting from zero, the index of the text that the citation ends after. * @return the value **/ public Integer getEnd() { @@ -164,13 +164,13 @@ public Integer getEnd() { } /** - * The text of the citation + * The text of the citation. **/ @com.fasterxml.jackson.annotation.JsonProperty("text") private final String text; /** - * The text of the citation + * The text of the citation. * @return the value **/ public String getText() { @@ -178,13 +178,13 @@ public String getText() { } /** - * Identifiers of documents cited by this section of the generated reply. + * Identifiers for the documents cited in the current generated response. **/ @com.fasterxml.jackson.annotation.JsonProperty("documentIds") private final java.util.List documentIds; /** - * Identifiers of documents cited by this section of the generated reply. + * Identifiers for the documents cited in the current generated response. * @return the value **/ public java.util.List getDocumentIds() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatBotMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatBotMessage.java new file mode 100644 index 0000000000..741f18baca --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatBotMessage.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * A message that represents a single chat dialog as CHATBOT role. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CohereChatBotMessage.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereChatBotMessage extends CohereMessage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Contents of the chat message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * A list of tool calls generated by the model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolCalls") + private java.util.List toolCalls; + + /** + * A list of tool calls generated by the model. + * @param toolCalls the value to set + * @return this builder + **/ + public Builder toolCalls(java.util.List toolCalls) { + this.toolCalls = toolCalls; + this.__explicitlySet__.add("toolCalls"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereChatBotMessage build() { + CohereChatBotMessage model = new CohereChatBotMessage(this.message, this.toolCalls); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereChatBotMessage model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("toolCalls")) { + this.toolCalls(model.getToolCalls()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CohereChatBotMessage(String message, java.util.List toolCalls) { + super(); + this.message = message; + this.toolCalls = toolCalls; + } + + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Contents of the chat message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * A list of tool calls generated by the model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolCalls") + private final java.util.List toolCalls; + + /** + * A list of tool calls generated by the model. + * @return the value + **/ + public java.util.List getToolCalls() { + return toolCalls; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereChatBotMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", toolCalls=").append(String.valueOf(this.toolCalls)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereChatBotMessage)) { + return false; + } + + CohereChatBotMessage other = (CohereChatBotMessage) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.toolCalls, other.toolCalls) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.toolCalls == null ? 43 : this.toolCalls.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatRequest.java index 5dc661cf20..8b3c1f7cf7 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatRequest.java @@ -28,13 +28,13 @@ public final class CohereChatRequest extends BaseChatRequest { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Text input for the model to respond to. + * The text that the user inputs for the model to respond to. **/ @com.fasterxml.jackson.annotation.JsonProperty("message") private String message; /** - * Text input for the model to respond to. + * The text that the user inputs for the model to respond to. * @param message the value to set * @return this builder **/ @@ -44,13 +44,13 @@ public Builder message(String message) { return this; } /** - * A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. **/ @com.fasterxml.jackson.annotation.JsonProperty("chatHistory") private java.util.List chatHistory; /** - * A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. * @param chatHistory the value to set * @return this builder **/ @@ -60,20 +60,28 @@ public Builder chatHistory(java.util.List chatHistory) { return this; } /** - * list of relevant documents that the model can cite to generate a more accurate reply. - * Some suggested keys are "text", "author", and "date". For better generation quality, it is - * recommended to keep the total word count of the strings in the dictionary to under 300 - * words. + * A list of relevant documents that the model can refer to for generating grounded responses to the user's requests. + * Some example keys that you can add to the dictionary are "text", "author", and "date". Keep the total word count of the strings in the dictionary to 300 words or less. + *

+ * Example: + * {@code [ + * { "title": "Tall penguins", "snippet": "Emperor penguins are the tallest." }, + * { "title": "Penguin habitats", "snippet": "Emperor penguins only live in Antarctica." } + * ]} * **/ @com.fasterxml.jackson.annotation.JsonProperty("documents") private java.util.List documents; /** - * list of relevant documents that the model can cite to generate a more accurate reply. - * Some suggested keys are "text", "author", and "date". For better generation quality, it is - * recommended to keep the total word count of the strings in the dictionary to under 300 - * words. + * A list of relevant documents that the model can refer to for generating grounded responses to the user's requests. + * Some example keys that you can add to the dictionary are "text", "author", and "date". Keep the total word count of the strings in the dictionary to 300 words or less. + *

+ * Example: + * {@code [ + * { "title": "Tall penguins", "snippet": "Emperor penguins are the tallest." }, + * { "title": "Penguin habitats", "snippet": "Emperor penguins only live in Antarctica." } + * ]} * * @param documents the value to set * @return this builder @@ -84,13 +92,15 @@ public Builder documents(java.util.List documents) { return this; } /** - * When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated. + * When set to true, the response contains only a list of generated search queries without the search results and the model will not respond to the user's message. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isSearchQueriesOnly") private Boolean isSearchQueriesOnly; /** - * When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated. + * When set to true, the response contains only a list of generated search queries without the search results and the model will not respond to the user's message. + * * @param isSearchQueriesOnly the value to set * @return this builder **/ @@ -100,13 +110,19 @@ public Builder isSearchQueriesOnly(Boolean isSearchQueriesOnly) { return this; } /** - * When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models. + * If specified, the default Cohere preamble is replaced with the provided preamble. A preamble is an initial guideline message that can change the model's overall chat behavior and conversation style. Default preambles vary for different models. + *

+ * Example: {@code You are a travel advisor. Answer with a pirate tone.} + * **/ @com.fasterxml.jackson.annotation.JsonProperty("preambleOverride") private String preambleOverride; /** - * When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models. + * If specified, the default Cohere preamble is replaced with the provided preamble. A preamble is an initial guideline message that can change the model's overall chat behavior and conversation style. Default preambles vary for different models. + *

+ * Example: {@code You are a travel advisor. Answer with a pirate tone.} + * * @param preambleOverride the value to set * @return this builder **/ @@ -116,13 +132,13 @@ public Builder preambleOverride(String preambleOverride) { return this; } /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream the partial progress of the model's response. When set to true, as tokens become available, they are sent as data-only server-sent events. **/ @com.fasterxml.jackson.annotation.JsonProperty("isStream") private Boolean isStream; /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream the partial progress of the model's response. When set to true, as tokens become available, they are sent as data-only server-sent events. * @param isStream the value to set * @return this builder **/ @@ -132,13 +148,13 @@ public Builder isStream(Boolean isStream) { return this; } /** - * The maximum number of tokens to predict for each response. Includes input plus output tokens. + * The maximum number of output tokens that the model will generate for the response. **/ @com.fasterxml.jackson.annotation.JsonProperty("maxTokens") private Integer maxTokens; /** - * The maximum number of tokens to predict for each response. Includes input plus output tokens. + * The maximum number of output tokens that the model will generate for the response. * @param maxTokens the value to set * @return this builder **/ @@ -148,16 +164,16 @@ public Builder maxTokens(Integer maxTokens) { return this; } /** - * A number that sets the randomness of the generated output. A lower temperature means a less random generations. - * Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. + * A number that sets the randomness of the generated output. A lower temperature means less random generations. + * Use lower numbers for tasks such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. * **/ @com.fasterxml.jackson.annotation.JsonProperty("temperature") private Double temperature; /** - * A number that sets the randomness of the generated output. A lower temperature means a less random generations. - * Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. + * A number that sets the randomness of the generated output. A lower temperature means less random generations. + * Use lower numbers for tasks such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. * * @param temperature the value to set * @return this builder @@ -168,18 +184,18 @@ public Builder temperature(Double temperature) { return this; } /** - * An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. + * A sampling method in which the model chooses the next token randomly from the top k most likely tokens. A higher value for k generates more random output, which makes the output text sound more natural. The default value for k is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. *

- * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen. + * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20 but only the probabilities of the top 10 add up to the value of p, then only the top 10 tokens are chosen. * **/ @com.fasterxml.jackson.annotation.JsonProperty("topK") private Integer topK; /** - * An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. + * A sampling method in which the model chooses the next token randomly from the top k most likely tokens. A higher value for k generates more random output, which makes the output text sound more natural. The default value for k is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. *

- * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen. + * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20 but only the probabilities of the top 10 add up to the value of p, then only the top 10 tokens are chosen. * * @param topK the value to set * @return this builder @@ -211,6 +227,24 @@ public Builder topP(Double topP) { this.__explicitlySet__.add("topP"); return this; } + /** + * Defaults to OFF. Dictates how the prompt will be constructed. With {@code prompt_truncation} set to AUTO_PRESERVE_ORDER, some elements from {@code chat_history} and {@code documents} will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With {@code prompt_truncation} set to OFF, no elements will be dropped. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("promptTruncation") + private PromptTruncation promptTruncation; + + /** + * Defaults to OFF. Dictates how the prompt will be constructed. With {@code prompt_truncation} set to AUTO_PRESERVE_ORDER, some elements from {@code chat_history} and {@code documents} will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With {@code prompt_truncation} set to OFF, no elements will be dropped. + * + * @param promptTruncation the value to set + * @return this builder + **/ + public Builder promptTruncation(PromptTruncation promptTruncation) { + this.promptTruncation = promptTruncation; + this.__explicitlySet__.add("promptTruncation"); + return this; + } /** * To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable. * @@ -251,6 +285,140 @@ public Builder presencePenalty(Double presencePenalty) { this.__explicitlySet__.add("presencePenalty"); return this; } + /** + * If specified, the backend will make a best effort to sample tokens deterministically, such that repeated requests with the same seed and parameters should return the same result. However, determinism cannot be totally guaranteed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("seed") + private Integer seed; + + /** + * If specified, the backend will make a best effort to sample tokens deterministically, such that repeated requests with the same seed and parameters should return the same result. However, determinism cannot be totally guaranteed. + * + * @param seed the value to set + * @return this builder + **/ + public Builder seed(Integer seed) { + this.seed = seed; + this.__explicitlySet__.add("seed"); + return this; + } + /** + * Returns the full prompt that was sent to the model when True. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEcho") + private Boolean isEcho; + + /** + * Returns the full prompt that was sent to the model when True. + * @param isEcho the value to set + * @return this builder + **/ + public Builder isEcho(Boolean isEcho) { + this.isEcho = isEcho; + this.__explicitlySet__.add("isEcho"); + return this; + } + /** + * A list of available tools (functions) that the model may suggest invoking before producing a text response. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private java.util.List tools; + + /** + * A list of available tools (functions) that the model may suggest invoking before producing a text response. + * @param tools the value to set + * @return this builder + **/ + public Builder tools(java.util.List tools) { + this.tools = tools; + this.__explicitlySet__.add("tools"); + return this; + } + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolResults") + private java.util.List toolResults; + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + * @param toolResults the value to set + * @return this builder + **/ + public Builder toolResults(java.util.List toolResults) { + this.toolResults = toolResults; + this.__explicitlySet__.add("toolResults"); + return this; + } + /** + * When enabled, the model will issue (potentially multiple) tool calls in a single step, before it receives the tool responses and directly answers the user's original message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceSingleStep") + private Boolean isForceSingleStep; + + /** + * When enabled, the model will issue (potentially multiple) tool calls in a single step, before it receives the tool responses and directly answers the user's original message. + * + * @param isForceSingleStep the value to set + * @return this builder + **/ + public Builder isForceSingleStep(Boolean isForceSingleStep) { + this.isForceSingleStep = isForceSingleStep; + this.__explicitlySet__.add("isForceSingleStep"); + return this; + } + /** + * Stop the model generation when it reaches a stop sequence defined in this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("stopSequences") + private java.util.List stopSequences; + + /** + * Stop the model generation when it reaches a stop sequence defined in this parameter. + * @param stopSequences the value to set + * @return this builder + **/ + public Builder stopSequences(java.util.List stopSequences) { + this.stopSequences = stopSequences; + this.__explicitlySet__.add("stopSequences"); + return this; + } + /** + * When enabled, the user\u2019s {@code message} will be sent to the model without any preprocessing. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRawPrompting") + private Boolean isRawPrompting; + + /** + * When enabled, the user\u2019s {@code message} will be sent to the model without any preprocessing. + * @param isRawPrompting the value to set + * @return this builder + **/ + public Builder isRawPrompting(Boolean isRawPrompting) { + this.isRawPrompting = isRawPrompting; + this.__explicitlySet__.add("isRawPrompting"); + return this; + } + /** + * When FAST is selected, citations are generated at the same time as the text output and the request will be completed sooner. May result in less accurate citations. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("citationQuality") + private CitationQuality citationQuality; + + /** + * When FAST is selected, citations are generated at the same time as the text output and the request will be completed sooner. May result in less accurate citations. + * + * @param citationQuality the value to set + * @return this builder + **/ + public Builder citationQuality(CitationQuality citationQuality) { + this.citationQuality = citationQuality; + this.__explicitlySet__.add("citationQuality"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -268,8 +436,17 @@ public CohereChatRequest build() { this.temperature, this.topK, this.topP, + this.promptTruncation, this.frequencyPenalty, - this.presencePenalty); + this.presencePenalty, + this.seed, + this.isEcho, + this.tools, + this.toolResults, + this.isForceSingleStep, + this.stopSequences, + this.isRawPrompting, + this.citationQuality); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -308,12 +485,39 @@ public Builder copy(CohereChatRequest model) { if (model.wasPropertyExplicitlySet("topP")) { this.topP(model.getTopP()); } + if (model.wasPropertyExplicitlySet("promptTruncation")) { + this.promptTruncation(model.getPromptTruncation()); + } if (model.wasPropertyExplicitlySet("frequencyPenalty")) { this.frequencyPenalty(model.getFrequencyPenalty()); } if (model.wasPropertyExplicitlySet("presencePenalty")) { this.presencePenalty(model.getPresencePenalty()); } + if (model.wasPropertyExplicitlySet("seed")) { + this.seed(model.getSeed()); + } + if (model.wasPropertyExplicitlySet("isEcho")) { + this.isEcho(model.getIsEcho()); + } + if (model.wasPropertyExplicitlySet("tools")) { + this.tools(model.getTools()); + } + if (model.wasPropertyExplicitlySet("toolResults")) { + this.toolResults(model.getToolResults()); + } + if (model.wasPropertyExplicitlySet("isForceSingleStep")) { + this.isForceSingleStep(model.getIsForceSingleStep()); + } + if (model.wasPropertyExplicitlySet("stopSequences")) { + this.stopSequences(model.getStopSequences()); + } + if (model.wasPropertyExplicitlySet("isRawPrompting")) { + this.isRawPrompting(model.getIsRawPrompting()); + } + if (model.wasPropertyExplicitlySet("citationQuality")) { + this.citationQuality(model.getCitationQuality()); + } return this; } } @@ -341,8 +545,17 @@ public CohereChatRequest( Double temperature, Integer topK, Double topP, + PromptTruncation promptTruncation, Double frequencyPenalty, - Double presencePenalty) { + Double presencePenalty, + Integer seed, + Boolean isEcho, + java.util.List tools, + java.util.List toolResults, + Boolean isForceSingleStep, + java.util.List stopSequences, + Boolean isRawPrompting, + CitationQuality citationQuality) { super(); this.message = message; this.chatHistory = chatHistory; @@ -354,18 +567,27 @@ public CohereChatRequest( this.temperature = temperature; this.topK = topK; this.topP = topP; + this.promptTruncation = promptTruncation; this.frequencyPenalty = frequencyPenalty; this.presencePenalty = presencePenalty; + this.seed = seed; + this.isEcho = isEcho; + this.tools = tools; + this.toolResults = toolResults; + this.isForceSingleStep = isForceSingleStep; + this.stopSequences = stopSequences; + this.isRawPrompting = isRawPrompting; + this.citationQuality = citationQuality; } /** - * Text input for the model to respond to. + * The text that the user inputs for the model to respond to. **/ @com.fasterxml.jackson.annotation.JsonProperty("message") private final String message; /** - * Text input for the model to respond to. + * The text that the user inputs for the model to respond to. * @return the value **/ public String getMessage() { @@ -373,13 +595,13 @@ public String getMessage() { } /** - * A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. **/ @com.fasterxml.jackson.annotation.JsonProperty("chatHistory") private final java.util.List chatHistory; /** - * A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's message. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. * @return the value **/ public java.util.List getChatHistory() { @@ -387,20 +609,28 @@ public java.util.List getChatHistory() { } /** - * list of relevant documents that the model can cite to generate a more accurate reply. - * Some suggested keys are "text", "author", and "date". For better generation quality, it is - * recommended to keep the total word count of the strings in the dictionary to under 300 - * words. + * A list of relevant documents that the model can refer to for generating grounded responses to the user's requests. + * Some example keys that you can add to the dictionary are "text", "author", and "date". Keep the total word count of the strings in the dictionary to 300 words or less. + *

+ * Example: + * {@code [ + * { "title": "Tall penguins", "snippet": "Emperor penguins are the tallest." }, + * { "title": "Penguin habitats", "snippet": "Emperor penguins only live in Antarctica." } + * ]} * **/ @com.fasterxml.jackson.annotation.JsonProperty("documents") private final java.util.List documents; /** - * list of relevant documents that the model can cite to generate a more accurate reply. - * Some suggested keys are "text", "author", and "date". For better generation quality, it is - * recommended to keep the total word count of the strings in the dictionary to under 300 - * words. + * A list of relevant documents that the model can refer to for generating grounded responses to the user's requests. + * Some example keys that you can add to the dictionary are "text", "author", and "date". Keep the total word count of the strings in the dictionary to 300 words or less. + *

+ * Example: + * {@code [ + * { "title": "Tall penguins", "snippet": "Emperor penguins are the tallest." }, + * { "title": "Penguin habitats", "snippet": "Emperor penguins only live in Antarctica." } + * ]} * * @return the value **/ @@ -409,13 +639,15 @@ public java.util.List getDocuments() { } /** - * When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated. + * When set to true, the response contains only a list of generated search queries without the search results and the model will not respond to the user's message. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isSearchQueriesOnly") private final Boolean isSearchQueriesOnly; /** - * When true, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's message will be generated. + * When set to true, the response contains only a list of generated search queries without the search results and the model will not respond to the user's message. + * * @return the value **/ public Boolean getIsSearchQueriesOnly() { @@ -423,13 +655,19 @@ public Boolean getIsSearchQueriesOnly() { } /** - * When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models. + * If specified, the default Cohere preamble is replaced with the provided preamble. A preamble is an initial guideline message that can change the model's overall chat behavior and conversation style. Default preambles vary for different models. + *

+ * Example: {@code You are a travel advisor. Answer with a pirate tone.} + * **/ @com.fasterxml.jackson.annotation.JsonProperty("preambleOverride") private final String preambleOverride; /** - * When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. Default preambles vary for different models. + * If specified, the default Cohere preamble is replaced with the provided preamble. A preamble is an initial guideline message that can change the model's overall chat behavior and conversation style. Default preambles vary for different models. + *

+ * Example: {@code You are a travel advisor. Answer with a pirate tone.} + * * @return the value **/ public String getPreambleOverride() { @@ -437,13 +675,13 @@ public String getPreambleOverride() { } /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream the partial progress of the model's response. When set to true, as tokens become available, they are sent as data-only server-sent events. **/ @com.fasterxml.jackson.annotation.JsonProperty("isStream") private final Boolean isStream; /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream the partial progress of the model's response. When set to true, as tokens become available, they are sent as data-only server-sent events. * @return the value **/ public Boolean getIsStream() { @@ -451,13 +689,13 @@ public Boolean getIsStream() { } /** - * The maximum number of tokens to predict for each response. Includes input plus output tokens. + * The maximum number of output tokens that the model will generate for the response. **/ @com.fasterxml.jackson.annotation.JsonProperty("maxTokens") private final Integer maxTokens; /** - * The maximum number of tokens to predict for each response. Includes input plus output tokens. + * The maximum number of output tokens that the model will generate for the response. * @return the value **/ public Integer getMaxTokens() { @@ -465,16 +703,16 @@ public Integer getMaxTokens() { } /** - * A number that sets the randomness of the generated output. A lower temperature means a less random generations. - * Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. + * A number that sets the randomness of the generated output. A lower temperature means less random generations. + * Use lower numbers for tasks such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. * **/ @com.fasterxml.jackson.annotation.JsonProperty("temperature") private final Double temperature; /** - * A number that sets the randomness of the generated output. A lower temperature means a less random generations. - * Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. + * A number that sets the randomness of the generated output. A lower temperature means less random generations. + * Use lower numbers for tasks such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0 and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs. * * @return the value **/ @@ -483,18 +721,18 @@ public Double getTemperature() { } /** - * An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. + * A sampling method in which the model chooses the next token randomly from the top k most likely tokens. A higher value for k generates more random output, which makes the output text sound more natural. The default value for k is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. *

- * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen. + * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20 but only the probabilities of the top 10 add up to the value of p, then only the top 10 tokens are chosen. * **/ @com.fasterxml.jackson.annotation.JsonProperty("topK") private final Integer topK; /** - * An integer that sets up the model to use only the top k most likely tokens in the generated output. A higher k introduces more randomness into the output making the output text sound more natural. Default value is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. + * A sampling method in which the model chooses the next token randomly from the top k most likely tokens. A higher value for k generates more random output, which makes the output text sound more natural. The default value for k is 0 which disables this method and considers all tokens. To set a number for the likely tokens, choose an integer between 1 and 500. *

- * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20, but the probabilities of the top 10 add up to .75, then only the top 10 tokens are chosen. + * If also using top p, then the model considers only the top tokens whose probabilities add up to p percent and ignores the rest of the k tokens. For example, if k is 20 but only the probabilities of the top 10 add up to the value of p, then only the top 10 tokens are chosen. * * @return the value **/ @@ -522,6 +760,58 @@ public Double getTopP() { return topP; } + /** + * Defaults to OFF. Dictates how the prompt will be constructed. With {@code prompt_truncation} set to AUTO_PRESERVE_ORDER, some elements from {@code chat_history} and {@code documents} will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With {@code prompt_truncation} set to OFF, no elements will be dropped. + * + **/ + public enum PromptTruncation { + Off("OFF"), + AutoPreserveOrder("AUTO_PRESERVE_ORDER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PromptTruncation v : PromptTruncation.values()) { + map.put(v.getValue(), v); + } + } + + PromptTruncation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PromptTruncation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PromptTruncation: " + key); + } + }; + /** + * Defaults to OFF. Dictates how the prompt will be constructed. With {@code prompt_truncation} set to AUTO_PRESERVE_ORDER, some elements from {@code chat_history} and {@code documents} will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With {@code prompt_truncation} set to OFF, no elements will be dropped. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("promptTruncation") + private final PromptTruncation promptTruncation; + + /** + * Defaults to OFF. Dictates how the prompt will be constructed. With {@code prompt_truncation} set to AUTO_PRESERVE_ORDER, some elements from {@code chat_history} and {@code documents} will be dropped to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved. With {@code prompt_truncation} set to OFF, no elements will be dropped. + * + * @return the value + **/ + public PromptTruncation getPromptTruncation() { + return promptTruncation; + } + /** * To reduce repetitiveness of generated tokens, this number penalizes new tokens based on their frequency in the generated text so far. Greater numbers encourage the model to use new tokens, while lower numbers encourage the model to repeat the tokens. Set to 0 to disable. * @@ -558,6 +848,160 @@ public Double getPresencePenalty() { return presencePenalty; } + /** + * If specified, the backend will make a best effort to sample tokens deterministically, such that repeated requests with the same seed and parameters should return the same result. However, determinism cannot be totally guaranteed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("seed") + private final Integer seed; + + /** + * If specified, the backend will make a best effort to sample tokens deterministically, such that repeated requests with the same seed and parameters should return the same result. However, determinism cannot be totally guaranteed. + * + * @return the value + **/ + public Integer getSeed() { + return seed; + } + + /** + * Returns the full prompt that was sent to the model when True. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEcho") + private final Boolean isEcho; + + /** + * Returns the full prompt that was sent to the model when True. + * @return the value + **/ + public Boolean getIsEcho() { + return isEcho; + } + + /** + * A list of available tools (functions) that the model may suggest invoking before producing a text response. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tools") + private final java.util.List tools; + + /** + * A list of available tools (functions) that the model may suggest invoking before producing a text response. + * @return the value + **/ + public java.util.List getTools() { + return tools; + } + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolResults") + private final java.util.List toolResults; + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + * @return the value + **/ + public java.util.List getToolResults() { + return toolResults; + } + + /** + * When enabled, the model will issue (potentially multiple) tool calls in a single step, before it receives the tool responses and directly answers the user's original message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isForceSingleStep") + private final Boolean isForceSingleStep; + + /** + * When enabled, the model will issue (potentially multiple) tool calls in a single step, before it receives the tool responses and directly answers the user's original message. + * + * @return the value + **/ + public Boolean getIsForceSingleStep() { + return isForceSingleStep; + } + + /** + * Stop the model generation when it reaches a stop sequence defined in this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("stopSequences") + private final java.util.List stopSequences; + + /** + * Stop the model generation when it reaches a stop sequence defined in this parameter. + * @return the value + **/ + public java.util.List getStopSequences() { + return stopSequences; + } + + /** + * When enabled, the user\u2019s {@code message} will be sent to the model without any preprocessing. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRawPrompting") + private final Boolean isRawPrompting; + + /** + * When enabled, the user\u2019s {@code message} will be sent to the model without any preprocessing. + * @return the value + **/ + public Boolean getIsRawPrompting() { + return isRawPrompting; + } + + /** + * When FAST is selected, citations are generated at the same time as the text output and the request will be completed sooner. May result in less accurate citations. + * + **/ + public enum CitationQuality { + Accurate("ACCURATE"), + Fast("FAST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CitationQuality v : CitationQuality.values()) { + map.put(v.getValue(), v); + } + } + + CitationQuality(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CitationQuality create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CitationQuality: " + key); + } + }; + /** + * When FAST is selected, citations are generated at the same time as the text output and the request will be completed sooner. May result in less accurate citations. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("citationQuality") + private final CitationQuality citationQuality; + + /** + * When FAST is selected, citations are generated at the same time as the text output and the request will be completed sooner. May result in less accurate citations. + * + * @return the value + **/ + public CitationQuality getCitationQuality() { + return citationQuality; + } + @Override public String toString() { return this.toString(true); @@ -582,8 +1026,17 @@ public String toString(boolean includeByteArrayContents) { sb.append(", temperature=").append(String.valueOf(this.temperature)); sb.append(", topK=").append(String.valueOf(this.topK)); sb.append(", topP=").append(String.valueOf(this.topP)); + sb.append(", promptTruncation=").append(String.valueOf(this.promptTruncation)); sb.append(", frequencyPenalty=").append(String.valueOf(this.frequencyPenalty)); sb.append(", presencePenalty=").append(String.valueOf(this.presencePenalty)); + sb.append(", seed=").append(String.valueOf(this.seed)); + sb.append(", isEcho=").append(String.valueOf(this.isEcho)); + sb.append(", tools=").append(String.valueOf(this.tools)); + sb.append(", toolResults=").append(String.valueOf(this.toolResults)); + sb.append(", isForceSingleStep=").append(String.valueOf(this.isForceSingleStep)); + sb.append(", stopSequences=").append(String.valueOf(this.stopSequences)); + sb.append(", isRawPrompting=").append(String.valueOf(this.isRawPrompting)); + sb.append(", citationQuality=").append(String.valueOf(this.citationQuality)); sb.append(")"); return sb.toString(); } @@ -608,8 +1061,17 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.temperature, other.temperature) && java.util.Objects.equals(this.topK, other.topK) && java.util.Objects.equals(this.topP, other.topP) + && java.util.Objects.equals(this.promptTruncation, other.promptTruncation) && java.util.Objects.equals(this.frequencyPenalty, other.frequencyPenalty) && java.util.Objects.equals(this.presencePenalty, other.presencePenalty) + && java.util.Objects.equals(this.seed, other.seed) + && java.util.Objects.equals(this.isEcho, other.isEcho) + && java.util.Objects.equals(this.tools, other.tools) + && java.util.Objects.equals(this.toolResults, other.toolResults) + && java.util.Objects.equals(this.isForceSingleStep, other.isForceSingleStep) + && java.util.Objects.equals(this.stopSequences, other.stopSequences) + && java.util.Objects.equals(this.isRawPrompting, other.isRawPrompting) + && java.util.Objects.equals(this.citationQuality, other.citationQuality) && super.equals(other); } @@ -633,12 +1095,31 @@ public int hashCode() { result = (result * PRIME) + (this.temperature == null ? 43 : this.temperature.hashCode()); result = (result * PRIME) + (this.topK == null ? 43 : this.topK.hashCode()); result = (result * PRIME) + (this.topP == null ? 43 : this.topP.hashCode()); + result = + (result * PRIME) + + (this.promptTruncation == null ? 43 : this.promptTruncation.hashCode()); result = (result * PRIME) + (this.frequencyPenalty == null ? 43 : this.frequencyPenalty.hashCode()); result = (result * PRIME) + (this.presencePenalty == null ? 43 : this.presencePenalty.hashCode()); + result = (result * PRIME) + (this.seed == null ? 43 : this.seed.hashCode()); + result = (result * PRIME) + (this.isEcho == null ? 43 : this.isEcho.hashCode()); + result = (result * PRIME) + (this.tools == null ? 43 : this.tools.hashCode()); + result = (result * PRIME) + (this.toolResults == null ? 43 : this.toolResults.hashCode()); + result = + (result * PRIME) + + (this.isForceSingleStep == null ? 43 : this.isForceSingleStep.hashCode()); + result = + (result * PRIME) + + (this.stopSequences == null ? 43 : this.stopSequences.hashCode()); + result = + (result * PRIME) + + (this.isRawPrompting == null ? 43 : this.isRawPrompting.hashCode()); + result = + (result * PRIME) + + (this.citationQuality == null ? 43 : this.citationQuality.hashCode()); return result; } } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatResponse.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatResponse.java index 1bb88e6dcf..d60532953e 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatResponse.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereChatResponse.java @@ -28,13 +28,13 @@ public final class CohereChatResponse extends BaseChatResponse { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Contents of the reply generated by the model. + * Contents of the response that the model generates. **/ @com.fasterxml.jackson.annotation.JsonProperty("text") private String text; /** - * Contents of the reply generated by the model. + * Contents of the response that the model generates. * @param text the value to set * @return this builder **/ @@ -44,13 +44,29 @@ public Builder text(String text) { return this; } /** - * Inline citations for the generated reply. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("chatHistory") + private java.util.List chatHistory; + + /** + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. + * @param chatHistory the value to set + * @return this builder + **/ + public Builder chatHistory(java.util.List chatHistory) { + this.chatHistory = chatHistory; + this.__explicitlySet__.add("chatHistory"); + return this; + } + /** + * Inline citations for the generated response. **/ @com.fasterxml.jackson.annotation.JsonProperty("citations") private java.util.List citations; /** - * Inline citations for the generated reply. + * Inline citations for the generated response. * @param citations the value to set * @return this builder **/ @@ -60,13 +76,13 @@ public Builder citations(java.util.List citations) { return this; } /** - * Denotes that a search for documents is required. + * If set to true, a search for documents is required. **/ @com.fasterxml.jackson.annotation.JsonProperty("isSearchRequired") private Boolean isSearchRequired; /** - * Denotes that a search for documents is required. + * If set to true, a search for documents is required. * @param isSearchRequired the value to set * @return this builder **/ @@ -76,13 +92,13 @@ public Builder isSearchRequired(Boolean isSearchRequired) { return this; } /** - * Why the generation was completed. + * Why the generation stopped. **/ @com.fasterxml.jackson.annotation.JsonProperty("finishReason") private FinishReason finishReason; /** - * Why the generation was completed. + * Why the generation stopped. * @param finishReason the value to set * @return this builder **/ @@ -92,13 +108,29 @@ public Builder finishReason(FinishReason finishReason) { return this; } /** - * Generated search queries. + * If there is an error during the streaming scenario, then the {@code errorMessage} parameter contains details for the error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private String errorMessage; + + /** + * If there is an error during the streaming scenario, then the {@code errorMessage} parameter contains details for the error. + * @param errorMessage the value to set + * @return this builder + **/ + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.__explicitlySet__.add("errorMessage"); + return this; + } + /** + * The generated search queries. **/ @com.fasterxml.jackson.annotation.JsonProperty("searchQueries") private java.util.List searchQueries; /** - * Generated search queries. + * The generated search queries. * @param searchQueries the value to set * @return this builder **/ @@ -108,16 +140,42 @@ public Builder searchQueries(java.util.List searchQueries) { return this; } /** - * Documents seen by the model when generating the reply. Each document is a JSON String - * representing the field and values of the document. + * The documents that the model can refer to when generating a response. Each document is a JSON string that represents the field and values of the document. + *

+ * Example: + * '[ + * { + * "id": "doc_0", + * "snippet": "Emperor penguins are the tallest.", + * "title": "Tall penguins" + * }, + * { + * "id": "doc_1", + * "snippet": "Emperor penguins only live in Antarctica.", + * "title": "Penguin habitats" + * } + * ]' * **/ @com.fasterxml.jackson.annotation.JsonProperty("documents") private java.util.List documents; /** - * Documents seen by the model when generating the reply. Each document is a JSON String - * representing the field and values of the document. + * The documents that the model can refer to when generating a response. Each document is a JSON string that represents the field and values of the document. + *

+ * Example: + * '[ + * { + * "id": "doc_0", + * "snippet": "Emperor penguins are the tallest.", + * "title": "Tall penguins" + * }, + * { + * "id": "doc_1", + * "snippet": "Emperor penguins only live in Antarctica.", + * "title": "Penguin habitats" + * } + * ]' * * @param documents the value to set * @return this builder @@ -127,6 +185,38 @@ public Builder documents(java.util.List documents) { this.__explicitlySet__.add("documents"); return this; } + /** + * A list of tool calls generated by the model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolCalls") + private java.util.List toolCalls; + + /** + * A list of tool calls generated by the model. + * @param toolCalls the value to set + * @return this builder + **/ + public Builder toolCalls(java.util.List toolCalls) { + this.toolCalls = toolCalls; + this.__explicitlySet__.add("toolCalls"); + return this; + } + /** + * The full prompt that was sent to the model if isEcho is true when request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prompt") + private String prompt; + + /** + * The full prompt that was sent to the model if isEcho is true when request. + * @param prompt the value to set + * @return this builder + **/ + public Builder prompt(String prompt) { + this.prompt = prompt; + this.__explicitlySet__.add("prompt"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -135,11 +225,15 @@ public CohereChatResponse build() { CohereChatResponse model = new CohereChatResponse( this.text, + this.chatHistory, this.citations, this.isSearchRequired, this.finishReason, + this.errorMessage, this.searchQueries, - this.documents); + this.documents, + this.toolCalls, + this.prompt); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -151,6 +245,9 @@ public Builder copy(CohereChatResponse model) { if (model.wasPropertyExplicitlySet("text")) { this.text(model.getText()); } + if (model.wasPropertyExplicitlySet("chatHistory")) { + this.chatHistory(model.getChatHistory()); + } if (model.wasPropertyExplicitlySet("citations")) { this.citations(model.getCitations()); } @@ -160,12 +257,21 @@ public Builder copy(CohereChatResponse model) { if (model.wasPropertyExplicitlySet("finishReason")) { this.finishReason(model.getFinishReason()); } + if (model.wasPropertyExplicitlySet("errorMessage")) { + this.errorMessage(model.getErrorMessage()); + } if (model.wasPropertyExplicitlySet("searchQueries")) { this.searchQueries(model.getSearchQueries()); } if (model.wasPropertyExplicitlySet("documents")) { this.documents(model.getDocuments()); } + if (model.wasPropertyExplicitlySet("toolCalls")) { + this.toolCalls(model.getToolCalls()); + } + if (model.wasPropertyExplicitlySet("prompt")) { + this.prompt(model.getPrompt()); + } return this; } } @@ -184,28 +290,36 @@ public Builder toBuilder() { @Deprecated public CohereChatResponse( String text, + java.util.List chatHistory, java.util.List citations, Boolean isSearchRequired, FinishReason finishReason, + String errorMessage, java.util.List searchQueries, - java.util.List documents) { + java.util.List documents, + java.util.List toolCalls, + String prompt) { super(); this.text = text; + this.chatHistory = chatHistory; this.citations = citations; this.isSearchRequired = isSearchRequired; this.finishReason = finishReason; + this.errorMessage = errorMessage; this.searchQueries = searchQueries; this.documents = documents; + this.toolCalls = toolCalls; + this.prompt = prompt; } /** - * Contents of the reply generated by the model. + * Contents of the response that the model generates. **/ @com.fasterxml.jackson.annotation.JsonProperty("text") private final String text; /** - * Contents of the reply generated by the model. + * Contents of the response that the model generates. * @return the value **/ public String getText() { @@ -213,13 +327,27 @@ public String getText() { } /** - * Inline citations for the generated reply. + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("chatHistory") + private final java.util.List chatHistory; + + /** + * The list of previous messages between the user and the model. The chat history gives the model context for responding to the user's inputs. + * @return the value + **/ + public java.util.List getChatHistory() { + return chatHistory; + } + + /** + * Inline citations for the generated response. **/ @com.fasterxml.jackson.annotation.JsonProperty("citations") private final java.util.List citations; /** - * Inline citations for the generated reply. + * Inline citations for the generated response. * @return the value **/ public java.util.List getCitations() { @@ -227,13 +355,13 @@ public java.util.List getCitations() { } /** - * Denotes that a search for documents is required. + * If set to true, a search for documents is required. **/ @com.fasterxml.jackson.annotation.JsonProperty("isSearchRequired") private final Boolean isSearchRequired; /** - * Denotes that a search for documents is required. + * If set to true, a search for documents is required. * @return the value **/ public Boolean getIsSearchRequired() { @@ -241,7 +369,7 @@ public Boolean getIsSearchRequired() { } /** - * Why the generation was completed. + * Why the generation stopped. **/ public enum FinishReason { Complete("COMPLETE"), @@ -293,13 +421,13 @@ public static FinishReason create(String key) { } }; /** - * Why the generation was completed. + * Why the generation stopped. **/ @com.fasterxml.jackson.annotation.JsonProperty("finishReason") private final FinishReason finishReason; /** - * Why the generation was completed. + * Why the generation stopped. * @return the value **/ public FinishReason getFinishReason() { @@ -307,13 +435,27 @@ public FinishReason getFinishReason() { } /** - * Generated search queries. + * If there is an error during the streaming scenario, then the {@code errorMessage} parameter contains details for the error. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private final String errorMessage; + + /** + * If there is an error during the streaming scenario, then the {@code errorMessage} parameter contains details for the error. + * @return the value + **/ + public String getErrorMessage() { + return errorMessage; + } + + /** + * The generated search queries. **/ @com.fasterxml.jackson.annotation.JsonProperty("searchQueries") private final java.util.List searchQueries; /** - * Generated search queries. + * The generated search queries. * @return the value **/ public java.util.List getSearchQueries() { @@ -321,16 +463,42 @@ public java.util.List getSearchQueries() { } /** - * Documents seen by the model when generating the reply. Each document is a JSON String - * representing the field and values of the document. + * The documents that the model can refer to when generating a response. Each document is a JSON string that represents the field and values of the document. + *

+ * Example: + * '[ + * { + * "id": "doc_0", + * "snippet": "Emperor penguins are the tallest.", + * "title": "Tall penguins" + * }, + * { + * "id": "doc_1", + * "snippet": "Emperor penguins only live in Antarctica.", + * "title": "Penguin habitats" + * } + * ]' * **/ @com.fasterxml.jackson.annotation.JsonProperty("documents") private final java.util.List documents; /** - * Documents seen by the model when generating the reply. Each document is a JSON String - * representing the field and values of the document. + * The documents that the model can refer to when generating a response. Each document is a JSON string that represents the field and values of the document. + *

+ * Example: + * '[ + * { + * "id": "doc_0", + * "snippet": "Emperor penguins are the tallest.", + * "title": "Tall penguins" + * }, + * { + * "id": "doc_1", + * "snippet": "Emperor penguins only live in Antarctica.", + * "title": "Penguin habitats" + * } + * ]' * * @return the value **/ @@ -338,6 +506,34 @@ public java.util.List getDocuments() { return documents; } + /** + * A list of tool calls generated by the model. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolCalls") + private final java.util.List toolCalls; + + /** + * A list of tool calls generated by the model. + * @return the value + **/ + public java.util.List getToolCalls() { + return toolCalls; + } + + /** + * The full prompt that was sent to the model if isEcho is true when request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prompt") + private final String prompt; + + /** + * The full prompt that was sent to the model if isEcho is true when request. + * @return the value + **/ + public String getPrompt() { + return prompt; + } + @Override public String toString() { return this.toString(true); @@ -353,11 +549,15 @@ public String toString(boolean includeByteArrayContents) { sb.append("CohereChatResponse("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", text=").append(String.valueOf(this.text)); + sb.append(", chatHistory=").append(String.valueOf(this.chatHistory)); sb.append(", citations=").append(String.valueOf(this.citations)); sb.append(", isSearchRequired=").append(String.valueOf(this.isSearchRequired)); sb.append(", finishReason=").append(String.valueOf(this.finishReason)); + sb.append(", errorMessage=").append(String.valueOf(this.errorMessage)); sb.append(", searchQueries=").append(String.valueOf(this.searchQueries)); sb.append(", documents=").append(String.valueOf(this.documents)); + sb.append(", toolCalls=").append(String.valueOf(this.toolCalls)); + sb.append(", prompt=").append(String.valueOf(this.prompt)); sb.append(")"); return sb.toString(); } @@ -373,11 +573,15 @@ public boolean equals(Object o) { CohereChatResponse other = (CohereChatResponse) o; return java.util.Objects.equals(this.text, other.text) + && java.util.Objects.equals(this.chatHistory, other.chatHistory) && java.util.Objects.equals(this.citations, other.citations) && java.util.Objects.equals(this.isSearchRequired, other.isSearchRequired) && java.util.Objects.equals(this.finishReason, other.finishReason) + && java.util.Objects.equals(this.errorMessage, other.errorMessage) && java.util.Objects.equals(this.searchQueries, other.searchQueries) && java.util.Objects.equals(this.documents, other.documents) + && java.util.Objects.equals(this.toolCalls, other.toolCalls) + && java.util.Objects.equals(this.prompt, other.prompt) && super.equals(other); } @@ -386,15 +590,19 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.text == null ? 43 : this.text.hashCode()); + result = (result * PRIME) + (this.chatHistory == null ? 43 : this.chatHistory.hashCode()); result = (result * PRIME) + (this.citations == null ? 43 : this.citations.hashCode()); result = (result * PRIME) + (this.isSearchRequired == null ? 43 : this.isSearchRequired.hashCode()); result = (result * PRIME) + (this.finishReason == null ? 43 : this.finishReason.hashCode()); + result = (result * PRIME) + (this.errorMessage == null ? 43 : this.errorMessage.hashCode()); result = (result * PRIME) + (this.searchQueries == null ? 43 : this.searchQueries.hashCode()); result = (result * PRIME) + (this.documents == null ? 43 : this.documents.hashCode()); + result = (result * PRIME) + (this.toolCalls == null ? 43 : this.toolCalls.hashCode()); + result = (result * PRIME) + (this.prompt == null ? 43 : this.prompt.hashCode()); return result; } } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereMessage.java index f29cfe6c86..98975f7bba 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereMessage.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereMessage.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * An message that represents a single dialogue of chat + * A message that represents a single chat dialog. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,93 +15,93 @@ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CohereMessage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role", + defaultImpl = CohereMessage.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CohereChatBotMessage.class, + name = "CHATBOT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CohereSystemMessage.class, + name = "SYSTEM" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CohereToolMessage.class, + name = "TOOL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CohereUserMessage.class, + name = "USER" + ) +}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CohereMessage extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class CohereMessage extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"role", "message"}) - public CohereMessage(Role role, String message) { + @java.beans.ConstructorProperties({}) + protected CohereMessage() { super(); - this.role = role; - this.message = message; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * One of CHATBOT|USER to identify who the message is coming from. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("role") - private Role role; - - /** - * One of CHATBOT|USER to identify who the message is coming from. - * @param role the value to set - * @return this builder - **/ - public Builder role(Role role) { - this.role = role; - this.__explicitlySet__.add("role"); - return this; - } - /** - * Contents of the chat message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private String message; - - /** - * Contents of the chat message. - * @param message the value to set - * @return this builder - **/ - public Builder message(String message) { - this.message = message; - this.__explicitlySet__.add("message"); - return this; - } + @Override + public String toString() { + return this.toString(true); + } - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereMessage("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } - public CohereMessage build() { - CohereMessage model = new CohereMessage(this.role, this.message); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CohereMessage model) { - if (model.wasPropertyExplicitlySet("role")) { - this.role(model.getRole()); - } - if (model.wasPropertyExplicitlySet("message")) { - this.message(model.getMessage()); - } - return this; + if (!(o instanceof CohereMessage)) { + return false; } - } - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); + CohereMessage other = (CohereMessage) o; + return super.equals(other); } - public Builder toBuilder() { - return new Builder().copy(this); + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; } /** - * One of CHATBOT|USER to identify who the message is coming from. + * To identify who the message is coming from, a role is associated to each message. **/ public enum Role { Chatbot("CHATBOT"), User("USER"), - ; + System("SYSTEM"), + Tool("TOOL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Role.class); private final String value; private static java.util.Map map; @@ -109,7 +109,9 @@ public enum Role { static { map = new java.util.HashMap<>(); for (Role v : Role.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -127,79 +129,9 @@ public static Role create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Role: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'Role', returning UnknownEnumValue", key); + return UnknownEnumValue; } }; - /** - * One of CHATBOT|USER to identify who the message is coming from. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("role") - private final Role role; - - /** - * One of CHATBOT|USER to identify who the message is coming from. - * @return the value - **/ - public Role getRole() { - return role; - } - - /** - * Contents of the chat message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private final String message; - - /** - * Contents of the chat message. - * @return the value - **/ - public String getMessage() { - return message; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CohereMessage("); - sb.append("super=").append(super.toString()); - sb.append("role=").append(String.valueOf(this.role)); - sb.append(", message=").append(String.valueOf(this.message)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CohereMessage)) { - return false; - } - - CohereMessage other = (CohereMessage) o; - return java.util.Objects.equals(this.role, other.role) - && java.util.Objects.equals(this.message, other.message) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); - result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereParameterDefinition.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereParameterDefinition.java new file mode 100644 index 0000000000..4d49eae493 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereParameterDefinition.java @@ -0,0 +1,211 @@ +/** + * 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.generativeaiinference.model; + +/** + * A definition of tool parameter. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CohereParameterDefinition.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereParameterDefinition + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description", "type", "isRequired"}) + public CohereParameterDefinition(String description, String type, Boolean isRequired) { + super(); + this.description = description; + this.type = type; + this.isRequired = isRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The description of the parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the parameter. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The type of the parameter. Must be a valid Python type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The type of the parameter. Must be a valid Python type. + * @param type the value to set + * @return this builder + **/ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Denotes whether the parameter is always present (required) or not. Defaults to not required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + /** + * Denotes whether the parameter is always present (required) or not. Defaults to not required. + * @param isRequired the value to set + * @return this builder + **/ + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereParameterDefinition build() { + CohereParameterDefinition model = + new CohereParameterDefinition(this.description, this.type, this.isRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereParameterDefinition model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("isRequired")) { + this.isRequired(model.getIsRequired()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The description of the parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the parameter. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The type of the parameter. Must be a valid Python type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The type of the parameter. Must be a valid Python type. + * @return the value + **/ + public String getType() { + return type; + } + + /** + * Denotes whether the parameter is always present (required) or not. Defaults to not required. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private final Boolean isRequired; + + /** + * Denotes whether the parameter is always present (required) or not. Defaults to not required. + * @return the value + **/ + public Boolean getIsRequired() { + return isRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereParameterDefinition("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", isRequired=").append(String.valueOf(this.isRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereParameterDefinition)) { + return false; + } + + CohereParameterDefinition other = (CohereParameterDefinition) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.isRequired, other.isRequired) + && super.equals(other); + } + + @Override + 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.isRequired == null ? 43 : this.isRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereSystemMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereSystemMessage.java new file mode 100644 index 0000000000..03d425edb1 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereSystemMessage.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * A message that represents a single chat dialog as SYSTEM role. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CohereSystemMessage.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereSystemMessage extends CohereMessage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Contents of the chat message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereSystemMessage build() { + CohereSystemMessage model = new CohereSystemMessage(this.message); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereSystemMessage model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CohereSystemMessage(String message) { + super(); + this.message = message; + } + + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Contents of the chat message. + * @return the value + **/ + public String getMessage() { + return message; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereSystemMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereSystemMessage)) { + return false; + } + + CohereSystemMessage other = (CohereSystemMessage) o; + return java.util.Objects.equals(this.message, other.message) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereTool.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereTool.java new file mode 100644 index 0000000000..7388955960 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereTool.java @@ -0,0 +1,216 @@ +/** + * 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.generativeaiinference.model; + +/** + * A definition of tool (function). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CohereTool.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereTool extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description", "parameterDefinitions"}) + public CohereTool( + String name, + String description, + java.util.Map parameterDefinitions) { + super(); + this.name = name; + this.description = description; + this.parameterDefinitions = parameterDefinitions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The description of what the tool does, the model uses the description to choose when and how to call the function. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of what the tool does, the model uses the description to choose when and how to call the function. + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The input parameters of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameterDefinitions") + private java.util.Map parameterDefinitions; + + /** + * The input parameters of the tool. + * @param parameterDefinitions the value to set + * @return this builder + **/ + public Builder parameterDefinitions( + java.util.Map parameterDefinitions) { + this.parameterDefinitions = parameterDefinitions; + this.__explicitlySet__.add("parameterDefinitions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereTool build() { + CohereTool model = + new CohereTool(this.name, this.description, this.parameterDefinitions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereTool model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("parameterDefinitions")) { + this.parameterDefinitions(model.getParameterDefinitions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit. + * @return the value + **/ + public String getName() { + return name; + } + + /** + * The description of what the tool does, the model uses the description to choose when and how to call the function. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of what the tool does, the model uses the description to choose when and how to call the function. + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The input parameters of the tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameterDefinitions") + private final java.util.Map parameterDefinitions; + + /** + * The input parameters of the tool. + * @return the value + **/ + public java.util.Map getParameterDefinitions() { + return parameterDefinitions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereTool("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", parameterDefinitions=").append(String.valueOf(this.parameterDefinitions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereTool)) { + return false; + } + + CohereTool other = (CohereTool) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.parameterDefinitions, other.parameterDefinitions) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.parameterDefinitions == null + ? 43 + : this.parameterDefinitions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolCall.java similarity index 60% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java rename to bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolCall.java index 5641c699cd..2a9630486f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolCall.java @@ -2,11 +2,10 @@ * 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; +package com.oracle.bmc.generativeaiinference.model; /** - * Optional details for creating a network database link from OCI database to on-premise database. - * + * A tool call generated by the model. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,33 +14,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDatabaseLinkDetails.Builder.class -) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CohereToolCall.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDatabaseLinkDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class CohereToolCall extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "walletBucket"}) - public CreateDatabaseLinkDetails(String name, CreateObjectStoreBucket walletBucket) { + @java.beans.ConstructorProperties({"name", "parameters"}) + public CohereToolCall(String name, Object parameters) { super(); this.name = name; - this.walletBucket = walletBucket; + this.parameters = parameters; } @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. - * + * Name of the tool to call. **/ @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. - * + * Name of the tool to call. * @param name the value to set * @return this builder **/ @@ -50,22 +44,28 @@ public Builder name(String name) { this.__explicitlySet__.add("name"); return this; } + /** + * The parameters to use when invoking a tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private Object parameters; - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private CreateObjectStoreBucket walletBucket; - - public Builder walletBucket(CreateObjectStoreBucket walletBucket) { - this.walletBucket = walletBucket; - this.__explicitlySet__.add("walletBucket"); + /** + * The parameters to use when invoking a tool. + * @param parameters the value to set + * @return this builder + **/ + public Builder parameters(Object parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateDatabaseLinkDetails build() { - CreateDatabaseLinkDetails model = - new CreateDatabaseLinkDetails(this.name, this.walletBucket); + public CohereToolCall build() { + CohereToolCall model = new CohereToolCall(this.name, this.parameters); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -73,12 +73,12 @@ public CreateDatabaseLinkDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDatabaseLinkDetails model) { + public Builder copy(CohereToolCall model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } - if (model.wasPropertyExplicitlySet("walletBucket")) { - this.walletBucket(model.getWalletBucket()); + if (model.wasPropertyExplicitlySet("parameters")) { + this.parameters(model.getParameters()); } return this; } @@ -96,26 +96,31 @@ public Builder toBuilder() { } /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist. - * + * Name of the tool to call. **/ @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. - * + * Name of the tool to call. * @return the value **/ public String getName() { return name; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private final CreateObjectStoreBucket walletBucket; + /** + * The parameters to use when invoking a tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private final Object parameters; - public CreateObjectStoreBucket getWalletBucket() { - return walletBucket; + /** + * The parameters to use when invoking a tool. + * @return the value + **/ + public Object getParameters() { + return parameters; } @Override @@ -130,10 +135,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDatabaseLinkDetails("); + sb.append("CohereToolCall("); sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); - sb.append(", walletBucket=").append(String.valueOf(this.walletBucket)); + sb.append(", parameters=").append(String.valueOf(this.parameters)); sb.append(")"); return sb.toString(); } @@ -143,13 +148,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDatabaseLinkDetails)) { + if (!(o instanceof CohereToolCall)) { return false; } - CreateDatabaseLinkDetails other = (CreateDatabaseLinkDetails) o; + CohereToolCall other = (CohereToolCall) o; return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.walletBucket, other.walletBucket) + && java.util.Objects.equals(this.parameters, other.parameters) && super.equals(other); } @@ -158,7 +163,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.parameters == null ? 43 : this.parameters.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolMessage.java new file mode 100644 index 0000000000..32439bf3da --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolMessage.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * A message that represents a single chat dialog as TOOL role. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CohereToolMessage.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereToolMessage extends CohereMessage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolResults") + private java.util.List toolResults; + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + * @param toolResults the value to set + * @return this builder + **/ + public Builder toolResults(java.util.List toolResults) { + this.toolResults = toolResults; + this.__explicitlySet__.add("toolResults"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereToolMessage build() { + CohereToolMessage model = new CohereToolMessage(this.toolResults); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereToolMessage model) { + if (model.wasPropertyExplicitlySet("toolResults")) { + this.toolResults(model.getToolResults()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CohereToolMessage(java.util.List toolResults) { + super(); + this.toolResults = toolResults; + } + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("toolResults") + private final java.util.List toolResults; + + /** + * A list of results from invoking tools recommended by the model in the previous chat turn. + * @return the value + **/ + public java.util.List getToolResults() { + return toolResults; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereToolMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", toolResults=").append(String.valueOf(this.toolResults)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereToolMessage)) { + return false; + } + + CohereToolMessage other = (CohereToolMessage) o; + return java.util.Objects.equals(this.toolResults, other.toolResults) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.toolResults == null ? 43 : this.toolResults.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolResult.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolResult.java new file mode 100644 index 0000000000..a717f6f5b2 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereToolResult.java @@ -0,0 +1,156 @@ +/** + * 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.generativeaiinference.model; + +/** + * The result from invoking tools recommended by the model in the previous chat turn. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CohereToolResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereToolResult extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"call", "outputs"}) + public CohereToolResult(CohereToolCall call, java.util.List outputs) { + super(); + this.call = call; + this.outputs = outputs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("call") + private CohereToolCall call; + + public Builder call(CohereToolCall call) { + this.call = call; + this.__explicitlySet__.add("call"); + return this; + } + /** + * An array of objects returned by tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("outputs") + private java.util.List outputs; + + /** + * An array of objects returned by tool. + * @param outputs the value to set + * @return this builder + **/ + public Builder outputs(java.util.List outputs) { + this.outputs = outputs; + this.__explicitlySet__.add("outputs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereToolResult build() { + CohereToolResult model = new CohereToolResult(this.call, this.outputs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereToolResult model) { + if (model.wasPropertyExplicitlySet("call")) { + this.call(model.getCall()); + } + if (model.wasPropertyExplicitlySet("outputs")) { + this.outputs(model.getOutputs()); + } + 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("call") + private final CohereToolCall call; + + public CohereToolCall getCall() { + return call; + } + + /** + * An array of objects returned by tool. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("outputs") + private final java.util.List outputs; + + /** + * An array of objects returned by tool. + * @return the value + **/ + public java.util.List getOutputs() { + return outputs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereToolResult("); + sb.append("super=").append(super.toString()); + sb.append("call=").append(String.valueOf(this.call)); + sb.append(", outputs=").append(String.valueOf(this.outputs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereToolResult)) { + return false; + } + + CohereToolResult other = (CohereToolResult) o; + return java.util.Objects.equals(this.call, other.call) + && java.util.Objects.equals(this.outputs, other.outputs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.call == null ? 43 : this.call.hashCode()); + result = (result * PRIME) + (this.outputs == null ? 43 : this.outputs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereUserMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereUserMessage.java new file mode 100644 index 0000000000..5fe15e12b2 --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/CohereUserMessage.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * A message that represents a single chat dialog as USER role. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CohereUserMessage.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CohereUserMessage extends CohereMessage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Contents of the chat message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CohereUserMessage build() { + CohereUserMessage model = new CohereUserMessage(this.message); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CohereUserMessage model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CohereUserMessage(String message) { + super(); + this.message = message; + } + + /** + * Contents of the chat message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Contents of the chat message. + * @return the value + **/ + public String getMessage() { + return message; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CohereUserMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CohereUserMessage)) { + return false; + } + + CohereUserMessage other = (CohereUserMessage) o; + return java.util.Objects.equals(this.message, other.message) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextDetails.java index 2d1fab6f21..1c2d1b5642 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/EmbedTextDetails.java @@ -46,13 +46,13 @@ public EmbedTextDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. + * Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. **/ @com.fasterxml.jackson.annotation.JsonProperty("inputs") private java.util.List inputs; /** - * Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. + * Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. * @param inputs the value to set * @return this builder **/ @@ -71,13 +71,13 @@ public Builder servingMode(ServingMode servingMode) { return this; } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to create text embeddings. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to create text embeddings. * @param compartmentId the value to set * @return this builder **/ @@ -189,13 +189,13 @@ public Builder toBuilder() { } /** - * Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. + * Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. **/ @com.fasterxml.jackson.annotation.JsonProperty("inputs") private final java.util.List inputs; /** - * Provide a list of strings with a maximum number of 96 entries. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. + * Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens. * @return the value **/ public java.util.List getInputs() { @@ -210,13 +210,13 @@ public ServingMode getServingMode() { } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to create text embeddings. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to create text embeddings. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenerateTextDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenerateTextDetails.java index f958f2c49d..d11baf1fb2 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenerateTextDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenerateTextDetails.java @@ -33,13 +33,13 @@ public GenerateTextDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to generate text. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to generate text. * @param compartmentId the value to set * @return this builder **/ @@ -107,13 +107,13 @@ public Builder toBuilder() { } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to generate text. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to generate text. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatRequest.java index 8003b6196b..477742e210 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatRequest.java @@ -28,13 +28,13 @@ public final class GenericChatRequest extends BaseChatRequest { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The series of messages associated with this chat completion request. It should include previous messages in the conversation. Each message has a role and content. + * The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role ({@code USER} or the {@code CHATBOT}) and content. **/ @com.fasterxml.jackson.annotation.JsonProperty("messages") private java.util.List messages; /** - * The series of messages associated with this chat completion request. It should include previous messages in the conversation. Each message has a role and content. + * The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role ({@code USER} or the {@code CHATBOT}) and content. * @param messages the value to set * @return this builder **/ @@ -44,13 +44,13 @@ public Builder messages(java.util.List messages) { return this; } /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events. **/ @com.fasterxml.jackson.annotation.JsonProperty("isStream") private Boolean isStream; /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events. * @param isStream the value to set * @return this builder **/ @@ -76,13 +76,13 @@ public Builder numGenerations(Integer numGenerations) { return this; } /** - * Whether or not to return the user prompt in the response. Applies only to non-stream results. + * Whether to include the user prompt in the response. Applies only to non-stream results. **/ @com.fasterxml.jackson.annotation.JsonProperty("isEcho") private Boolean isEcho; /** - * Whether or not to return the user prompt in the response. Applies only to non-stream results. + * Whether to include the user prompt in the response. Applies only to non-stream results. * @param isEcho the value to set * @return this builder **/ @@ -234,13 +234,17 @@ public Builder logProbs(Integer logProbs) { return this; } /** - * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus max_tokens cannot exceed the model's context length. + * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus {@code maxTokens} must not exceed the model's context length. + * Not setting a value for maxTokens results in the possible use of model's full context length. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("maxTokens") private Integer maxTokens; /** - * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus max_tokens cannot exceed the model's context length. + * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus {@code maxTokens} must not exceed the model's context length. + * Not setting a value for maxTokens results in the possible use of model's full context length. + * * @param maxTokens the value to set * @return this builder **/ @@ -250,13 +254,19 @@ public Builder maxTokens(Integer maxTokens) { return this; } /** - * Modify the likelihood of specified tokens appearing in the completion. + * Modifies the likelihood of specified tokens that appear in the completion. + *

+ * Example: '{"6395": 2, "8134": 1, "21943": 0.5, "5923": -100}' + * **/ @com.fasterxml.jackson.annotation.JsonProperty("logitBias") private Object logitBias; /** - * Modify the likelihood of specified tokens appearing in the completion. + * Modifies the likelihood of specified tokens that appear in the completion. + *

+ * Example: '{"6395": 2, "8134": 1, "21943": 0.5, "5923": -100}' + * * @param logitBias the value to set * @return this builder **/ @@ -379,13 +389,13 @@ public GenericChatRequest( } /** - * The series of messages associated with this chat completion request. It should include previous messages in the conversation. Each message has a role and content. + * The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role ({@code USER} or the {@code CHATBOT}) and content. **/ @com.fasterxml.jackson.annotation.JsonProperty("messages") private final java.util.List messages; /** - * The series of messages associated with this chat completion request. It should include previous messages in the conversation. Each message has a role and content. + * The series of messages in a chat request. Includes the previous messages in a conversation. Each message includes a role ({@code USER} or the {@code CHATBOT}) and content. * @return the value **/ public java.util.List getMessages() { @@ -393,13 +403,13 @@ public java.util.List getMessages() { } /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events. **/ @com.fasterxml.jackson.annotation.JsonProperty("isStream") private final Boolean isStream; /** - * Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. + * Whether to stream back partial progress. If set to true, as tokens become available, they are sent as data-only server-sent events. * @return the value **/ public Boolean getIsStream() { @@ -421,13 +431,13 @@ public Integer getNumGenerations() { } /** - * Whether or not to return the user prompt in the response. Applies only to non-stream results. + * Whether to include the user prompt in the response. Applies only to non-stream results. **/ @com.fasterxml.jackson.annotation.JsonProperty("isEcho") private final Boolean isEcho; /** - * Whether or not to return the user prompt in the response. Applies only to non-stream results. + * Whether to include the user prompt in the response. Applies only to non-stream results. * @return the value **/ public Boolean getIsEcho() { @@ -563,13 +573,17 @@ public Integer getLogProbs() { } /** - * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus max_tokens cannot exceed the model's context length. + * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus {@code maxTokens} must not exceed the model's context length. + * Not setting a value for maxTokens results in the possible use of model's full context length. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("maxTokens") private final Integer maxTokens; /** - * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus max_tokens cannot exceed the model's context length. + * The maximum number of tokens that can be generated per output sequence. The token count of your prompt plus {@code maxTokens} must not exceed the model's context length. + * Not setting a value for maxTokens results in the possible use of model's full context length. + * * @return the value **/ public Integer getMaxTokens() { @@ -577,13 +591,19 @@ public Integer getMaxTokens() { } /** - * Modify the likelihood of specified tokens appearing in the completion. + * Modifies the likelihood of specified tokens that appear in the completion. + *

+ * Example: '{"6395": 2, "8134": 1, "21943": 0.5, "5923": -100}' + * **/ @com.fasterxml.jackson.annotation.JsonProperty("logitBias") private final Object logitBias; /** - * Modify the likelihood of specified tokens appearing in the completion. + * Modifies the likelihood of specified tokens that appear in the completion. + *

+ * Example: '{"6395": 2, "8134": 1, "21943": 0.5, "5923": -100}' + * * @return the value **/ public Object getLogitBias() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatResponse.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatResponse.java index f58d0cd9fc..9c6f128005 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatResponse.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/GenericChatResponse.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * The response to the chat conversation. + * The response for a chat conversation. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -28,13 +28,13 @@ public final class GenericChatResponse extends BaseChatResponse { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The Unix timestamp (in seconds) of when the generation was created. + * The Unix timestamp (in seconds) of when the response text was generated. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The Unix timestamp (in seconds) of when the generation was created. + * The Unix timestamp (in seconds) of when the response text was generated. * @param timeCreated the value to set * @return this builder **/ @@ -102,13 +102,13 @@ public GenericChatResponse(java.util.Date timeCreated, java.util.List + * For example, if the log probability is 5, the API returns a list of the 5 most likely tokens. The API returns the log probability of the sampled token, so there might be up to logprobs+1 elements in the response. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Message.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Message.java index 7ce53227bd..590d47bcff 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Message.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/Message.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * An message that represents a single dialogue of chat + * A message that represents a single chat dialog. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,100 +15,32 @@ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Message.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role", + defaultImpl = Message.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SystemMessage.class, + name = "SYSTEM" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AssistantMessage.class, + name = "ASSISTANT" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = UserMessage.class, name = "USER") +}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class Message extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class Message extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"role", "content"}) - public Message(String role, java.util.List content) { + @java.beans.ConstructorProperties({"content"}) + protected Message(java.util.List content) { super(); - this.role = role; this.content = content; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Indicates who is giving the current message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("role") - private String role; - - /** - * Indicates who is giving the current message. - * @param role the value to set - * @return this builder - **/ - public Builder role(String role) { - this.role = role; - this.__explicitlySet__.add("role"); - return this; - } - /** - * Contents of the chat message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("content") - private java.util.List content; - - /** - * Contents of the chat message. - * @param content the value to set - * @return this builder - **/ - public Builder content(java.util.List content) { - this.content = content; - this.__explicitlySet__.add("content"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public Message build() { - Message model = new Message(this.role, this.content); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(Message model) { - if (model.wasPropertyExplicitlySet("role")) { - this.role(model.getRole()); - } - if (model.wasPropertyExplicitlySet("content")) { - this.content(model.getContent()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Indicates who is giving the current message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("role") - private final String role; - - /** - * Indicates who is giving the current message. - * @return the value - **/ - public String getRole() { - return role; - } - /** * Contents of the chat message. **/ @@ -137,8 +69,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("Message("); sb.append("super=").append(super.toString()); - sb.append("role=").append(String.valueOf(this.role)); - sb.append(", content=").append(String.valueOf(this.content)); + sb.append("content=").append(String.valueOf(this.content)); sb.append(")"); return sb.toString(); } @@ -153,18 +84,63 @@ public boolean equals(Object o) { } Message other = (Message) o; - return java.util.Objects.equals(this.role, other.role) - && java.util.Objects.equals(this.content, other.content) - && super.equals(other); + return java.util.Objects.equals(this.content, other.content) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } + + /** + * Indicates who is writing the current chat message. + **/ + public enum Role { + System("SYSTEM"), + User("USER"), + Assistant("ASSISTANT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Role.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Role v : Role.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Role(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Role create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Role', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; } diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/OnDemandServingMode.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/OnDemandServingMode.java index 2a0751360a..a4194e7dba 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/OnDemandServingMode.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/OnDemandServingMode.java @@ -28,13 +28,13 @@ public final class OnDemandServingMode extends ServingMode { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The unique ID of a model to use. Can use list Models API to list available models. + * The unique ID of a model to use. You can use the {@link #listModels(ListModelsRequest) listModels} API to list the available models. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelId") private String modelId; /** - * The unique ID of a model to use. Can use list Models API to list available models. + * The unique ID of a model to use. You can use the {@link #listModels(ListModelsRequest) listModels} API to list the available models. * @param modelId the value to set * @return this builder **/ @@ -82,13 +82,13 @@ public OnDemandServingMode(String modelId) { } /** - * The unique ID of a model to use. Can use list Models API to list available models. + * The unique ID of a model to use. You can use the {@link #listModels(ListModelsRequest) listModels} API to list the available models. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelId") private final String modelId; /** - * The unique ID of a model to use. Can use list Models API to list available models. + * The unique ID of a model to use. You can use the {@link #listModels(ListModelsRequest) listModels} API to list the available models. * @return the value **/ public String getModelId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ServingMode.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ServingMode.java index 3e6c8e47e3..9558fa2f4b 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ServingMode.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/ServingMode.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * The model's serving mode, which could be on-demand serving or dedicated serving. + * The model's serving mode, which is either on-demand serving or dedicated serving. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -79,7 +79,7 @@ public int hashCode() { } /** - * The serving mode type, which could be on-demand serving or dedicated serving. + * The serving mode type, which is either on-demand serving or dedicated serving. **/ public enum ServingType { OnDemand("ON_DEMAND"), diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SummarizeTextDetails.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SummarizeTextDetails.java index 165acc105e..0ffe6ea437 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SummarizeTextDetails.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SummarizeTextDetails.java @@ -82,13 +82,13 @@ public Builder servingMode(ServingMode servingMode) { return this; } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to summarize text. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to summarize text. * @param compartmentId the value to set * @return this builder **/ @@ -287,13 +287,13 @@ public ServingMode getServingMode() { } /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to summarize text. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of compartment that the user is authorized to use to call into the Generative AI service. + * The OCID of compartment in which to call the Generative AI service to summarize text. * @return the value **/ public String getCompartmentId() { diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SystemMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SystemMessage.java new file mode 100644 index 0000000000..c699bace2f --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/SystemMessage.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * Represents a single instance of system message. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SystemMessage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class SystemMessage extends Message { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("content") + private java.util.List content; + + public Builder content(java.util.List content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SystemMessage build() { + SystemMessage model = new SystemMessage(this.content, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SystemMessage model) { + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SystemMessage(java.util.List content, String name) { + super(content); + this.name = name; + } + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + * @return the value + **/ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SystemMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SystemMessage)) { + return false; + } + + SystemMessage other = (SystemMessage) o; + return java.util.Objects.equals(this.name, other.name) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/TextContent.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/TextContent.java index fb6d6f2139..8f06f0fba9 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/TextContent.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/TextContent.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiinference.model; /** - * Represents a single instance of text chat content. + * Represents a single instance of text in the chat content. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/UserMessage.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/UserMessage.java new file mode 100644 index 0000000000..3a435aa10d --- /dev/null +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/model/UserMessage.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaiinference.model; + +/** + * Represents a single instance of user message. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UserMessage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "role" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UserMessage extends Message { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("content") + private java.util.List content; + + public Builder content(java.util.List content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + * @param name the value to set + * @return this builder + **/ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UserMessage build() { + UserMessage model = new UserMessage(this.content, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UserMessage model) { + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UserMessage(java.util.List content, String name) { + super(content); + this.name = name; + } + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + * @return the value + **/ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UserMessage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UserMessage)) { + return false; + } + + UserMessage other = (UserMessage) o; + return java.util.Objects.equals(this.name, other.name) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ChatRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ChatRequest.java index 10cdfaf7ae..48a2dded74 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ChatRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/ChatRequest.java @@ -27,9 +27,8 @@ public com.oracle.bmc.generativeaiinference.model.ChatDetails getChatDetails() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken; @@ -37,9 +36,8 @@ public com.oracle.bmc.generativeaiinference.model.ChatDetails getChatDetails() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ public String getOpcRetryToken() { @@ -93,9 +91,8 @@ public Builder chatDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken = null; @@ -103,9 +100,8 @@ public Builder chatDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * * @param opcRetryToken the value to set * @return this builder instance diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/EmbedTextRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/EmbedTextRequest.java index 1fbf1eefae..294ca19c1e 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/EmbedTextRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/EmbedTextRequest.java @@ -27,9 +27,8 @@ public com.oracle.bmc.generativeaiinference.model.EmbedTextDetails getEmbedTextD /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken; @@ -37,9 +36,8 @@ public com.oracle.bmc.generativeaiinference.model.EmbedTextDetails getEmbedTextD /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ public String getOpcRetryToken() { @@ -93,9 +91,8 @@ public Builder embedTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken = null; @@ -103,9 +100,8 @@ public Builder embedTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * * @param opcRetryToken the value to set * @return this builder instance diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/GenerateTextRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/GenerateTextRequest.java index bd52add6b2..3a30e36b47 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/GenerateTextRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/GenerateTextRequest.java @@ -27,9 +27,8 @@ public com.oracle.bmc.generativeaiinference.model.GenerateTextDetails getGenerat /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken; @@ -37,9 +36,8 @@ public com.oracle.bmc.generativeaiinference.model.GenerateTextDetails getGenerat /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ public String getOpcRetryToken() { @@ -96,9 +94,8 @@ public Builder generateTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken = null; @@ -106,9 +103,8 @@ public Builder generateTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * * @param opcRetryToken the value to set * @return this builder instance diff --git a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/SummarizeTextRequest.java b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/SummarizeTextRequest.java index 7e208228f7..3a873dd478 100644 --- a/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/SummarizeTextRequest.java +++ b/bmc-generativeaiinference/src/main/java/com/oracle/bmc/generativeaiinference/requests/SummarizeTextRequest.java @@ -28,9 +28,8 @@ public class SummarizeTextRequest /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken; @@ -38,9 +37,8 @@ public class SummarizeTextRequest /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ public String getOpcRetryToken() { @@ -97,9 +95,8 @@ public Builder summarizeTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * */ private String opcRetryToken = null; @@ -107,9 +104,8 @@ public Builder summarizeTextDetails( /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request + * is rejected. * * @param opcRetryToken the value to set * @return this builder instance diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index b3e48cf3f3..b2f614d673 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 499661ec22..d1c33b2058 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseService.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseService.java index bdb0a965fa..2e6d909549 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseService.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseService.java @@ -378,6 +378,19 @@ GenerateGsmCertificateSigningRequestResponse generateGsmCertificateSigningReques PrevalidateShardedDatabaseResponse prevalidateShardedDatabase( PrevalidateShardedDatabaseRequest request); + /** + * API to reinstate the proxy instances associated with the private endpoint. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ReinstateProxyInstance API. + */ + ReinstateProxyInstanceResponse reinstateProxyInstance(ReinstateProxyInstanceRequest request); + /** * Start the shards, catalog and GSMs of Sharded Database. * @param request The request object containing the details to send diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsync.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsync.java index 25db041613..02b8b6acaa 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsync.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsync.java @@ -470,6 +470,23 @@ java.util.concurrent.Future prevalidateShard PrevalidateShardedDatabaseRequest, PrevalidateShardedDatabaseResponse> handler); + /** + * API to reinstate the proxy instances associated with the private endpoint. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future reinstateProxyInstance( + ReinstateProxyInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + handler); + /** * Start the shards, catalog and GSMs of Sharded Database. * diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsyncClient.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsyncClient.java index 77df04efe8..aa85b743c6 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsyncClient.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceAsyncClient.java @@ -1639,6 +1639,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future reinstateProxyInstance( + ReinstateProxyInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + handler) { + LOG.trace("Called async reinstateProxyInstance"); + final ReinstateProxyInstanceRequest interceptedRequest = + ReinstateProxyInstanceConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ShardedDatabaseService", + "ReinstateProxyInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/ReinstateProxyInstance"); + final java.util.function.Function + transformer = + ReinstateProxyInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future startShardedDatabase( StartShardedDatabaseRequest request, diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceClient.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceClient.java index 395aa254a6..9910eb0362 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceClient.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/ShardedDatabaseServiceClient.java @@ -1483,6 +1483,46 @@ public PrevalidateShardedDatabaseResponse prevalidateShardedDatabase( }); } + @Override + public ReinstateProxyInstanceResponse reinstateProxyInstance( + ReinstateProxyInstanceRequest request) { + LOG.trace("Called reinstateProxyInstance"); + final ReinstateProxyInstanceRequest interceptedRequest = + ReinstateProxyInstanceConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "ShardedDatabaseService", + "ReinstateProxyInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/ReinstateProxyInstance"); + java.util.function.Function + transformer = + ReinstateProxyInstanceConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public StartShardedDatabaseResponse startShardedDatabase(StartShardedDatabaseRequest request) { LOG.trace("Called startShardedDatabase"); diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GenerateGsmCertificateSigningRequestConverter.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GenerateGsmCertificateSigningRequestConverter.java index 3dc9416279..c763d06ed4 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GenerateGsmCertificateSigningRequestConverter.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GenerateGsmCertificateSigningRequestConverter.java @@ -47,6 +47,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("generateGsmCertificateSigningRequest"); + if (request.getCaBundleId() != null) { + target = + target.queryParam( + "caBundleId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCaBundleId())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetPrivateEndpointConverter.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetPrivateEndpointConverter.java index b8fb369960..f9988d0109 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetPrivateEndpointConverter.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetPrivateEndpointConverter.java @@ -45,6 +45,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getIfNoneMatch() != null) { + ib.header("if-none-match", request.getIfNoneMatch()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetShardedDatabaseConverter.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetShardedDatabaseConverter.java index 59b1d6e22a..08eae2a65f 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetShardedDatabaseConverter.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/GetShardedDatabaseConverter.java @@ -53,6 +53,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getIfNoneMatch() != null) { + ib.header("if-none-match", request.getIfNoneMatch()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/ReinstateProxyInstanceConverter.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/ReinstateProxyInstanceConverter.java new file mode 100644 index 0000000000..9d3dea65ab --- /dev/null +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/internal/http/ReinstateProxyInstanceConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.globallydistributeddatabase.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.globallydistributeddatabase.model.*; +import com.oracle.bmc.globallydistributeddatabase.requests.*; +import com.oracle.bmc.globallydistributeddatabase.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301") +public class ReinstateProxyInstanceConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ReinstateProxyInstanceConverter.class); + + public static com.oracle.bmc.globallydistributeddatabase.requests.ReinstateProxyInstanceRequest + interceptRequest( + com.oracle.bmc.globallydistributeddatabase.requests + .ReinstateProxyInstanceRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.globallydistributeddatabase.requests.ReinstateProxyInstanceRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getPrivateEndpointId(), "privateEndpointId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230301") + .path("privateEndpoints") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPrivateEndpointId())) + .path("actions") + .path("reinstateProxyInstance"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse>() { + @Override + public com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.globallydistributeddatabase.responses.ReinstateProxyInstanceResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse.Builder + builder = + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.globallydistributeddatabase.responses + .ReinstateProxyInstanceResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/CreateDedicatedShardedDatabase.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/CreateDedicatedShardedDatabase.java index 75d5590507..a6fbf80f8b 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/CreateDedicatedShardedDatabase.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/CreateDedicatedShardedDatabase.java @@ -63,6 +63,57 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The Replication method for sharded database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private DedicatedShardedDatabase.ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. + * @param replicationMethod the value to set + * @return this builder + **/ + public Builder replicationMethod( + DedicatedShardedDatabase.ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @param replicationFactor the value to set + * @return this builder + **/ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @param replicationUnit the value to set + * @return this builder + **/ + public Builder replicationUnit(Integer replicationUnit) { + this.replicationUnit = replicationUnit; + this.__explicitlySet__.add("replicationUnit"); + return this; + } /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -324,6 +375,9 @@ public CreateDedicatedShardedDatabase build() { this.displayName, this.freeformTags, this.definedTags, + this.replicationMethod, + this.replicationFactor, + this.replicationUnit, this.clusterCertificateCommonName, this.chunks, this.dbWorkload, @@ -358,6 +412,15 @@ public Builder copy(CreateDedicatedShardedDatabase model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("replicationUnit")) { + this.replicationUnit(model.getReplicationUnit()); + } if (model.wasPropertyExplicitlySet("clusterCertificateCommonName")) { this.clusterCertificateCommonName(model.getClusterCertificateCommonName()); } @@ -421,6 +484,9 @@ public CreateDedicatedShardedDatabase( String displayName, java.util.Map freeformTags, java.util.Map> definedTags, + DedicatedShardedDatabase.ReplicationMethod replicationMethod, + Integer replicationFactor, + Integer replicationUnit, String clusterCertificateCommonName, Integer chunks, DbWorkload dbWorkload, @@ -436,6 +502,9 @@ public CreateDedicatedShardedDatabase( java.util.List shardDetails, java.util.List catalogDetails) { super(compartmentId, displayName, freeformTags, definedTags); + this.replicationMethod = replicationMethod; + this.replicationFactor = replicationFactor; + this.replicationUnit = replicationUnit; this.clusterCertificateCommonName = clusterCertificateCommonName; this.chunks = chunks; this.dbWorkload = dbWorkload; @@ -452,6 +521,50 @@ public CreateDedicatedShardedDatabase( this.catalogDetails = catalogDetails; } + /** + * The Replication method for sharded database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final DedicatedShardedDatabase.ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. + * @return the value + **/ + public DedicatedShardedDatabase.ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @return the value + **/ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private final Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @return the value + **/ + public Integer getReplicationUnit() { + return replicationUnit; + } + /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -758,6 +871,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateDedicatedShardedDatabase("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); sb.append(", clusterCertificateCommonName=") .append(String.valueOf(this.clusterCertificateCommonName)); sb.append(", chunks=").append(String.valueOf(this.chunks)); @@ -787,7 +903,10 @@ public boolean equals(Object o) { } CreateDedicatedShardedDatabase other = (CreateDedicatedShardedDatabase) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) + && java.util.Objects.equals( this.clusterCertificateCommonName, other.clusterCertificateCommonName) && java.util.Objects.equals(this.chunks, other.chunks) && java.util.Objects.equals(this.dbWorkload, other.dbWorkload) @@ -809,6 +928,15 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = + (result * PRIME) + + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); result = (result * PRIME) + (this.clusterCertificateCommonName == null diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabase.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabase.java index 228f5f0639..462275f2aa 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabase.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabase.java @@ -117,6 +117,60 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The Replication method for sharded database. Use RAFT for Raft replication, and DG for + * DataGuard. If replicationMethod is not provided, it defaults to DG. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. Use RAFT for Raft replication, and DG for + * DataGuard. If replicationMethod is not provided, it defaults to DG. + * + * @param replicationMethod the value to set + * @return this builder + **/ + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @param replicationFactor the value to set + * @return this builder + **/ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @param replicationUnit the value to set + * @return this builder + **/ + public Builder replicationUnit(Integer replicationUnit) { + this.replicationUnit = replicationUnit; + this.__explicitlySet__.add("replicationUnit"); + return this; + } /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -425,6 +479,9 @@ public DedicatedShardedDatabase build() { this.freeformTags, this.definedTags, this.systemTags, + this.replicationMethod, + this.replicationFactor, + this.replicationUnit, this.clusterCertificateCommonName, this.characterSet, this.ncharacterSet, @@ -481,6 +538,15 @@ public Builder copy(DedicatedShardedDatabase model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("replicationUnit")) { + this.replicationUnit(model.getReplicationUnit()); + } if (model.wasPropertyExplicitlySet("clusterCertificateCommonName")) { this.clusterCertificateCommonName(model.getClusterCertificateCommonName()); } @@ -562,6 +628,9 @@ public DedicatedShardedDatabase( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + ReplicationMethod replicationMethod, + Integer replicationFactor, + Integer replicationUnit, String clusterCertificateCommonName, String characterSet, String ncharacterSet, @@ -591,6 +660,9 @@ public DedicatedShardedDatabase( freeformTags, definedTags, systemTags); + this.replicationMethod = replicationMethod; + this.replicationFactor = replicationFactor; + this.replicationUnit = replicationUnit; this.clusterCertificateCommonName = clusterCertificateCommonName; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; @@ -611,6 +683,104 @@ public DedicatedShardedDatabase( this.catalogDetails = catalogDetails; } + /** + * The Replication method for sharded database. Use RAFT for Raft replication, and DG for + * DataGuard. If replicationMethod is not provided, it defaults to DG. + * + **/ + public enum ReplicationMethod { + Raft("RAFT"), + Dg("DG"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ReplicationMethod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicationMethod v : ReplicationMethod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicationMethod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicationMethod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Replication method for sharded database. Use RAFT for Raft replication, and DG for + * DataGuard. If replicationMethod is not provided, it defaults to DG. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. Use RAFT for Raft replication, and DG for + * DataGuard. If replicationMethod is not provided, it defaults to DG. + * + * @return the value + **/ + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @return the value + **/ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private final Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @return the value + **/ + public Integer getReplicationUnit() { + return replicationUnit; + } + /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -976,6 +1146,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DedicatedShardedDatabase("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); sb.append(", clusterCertificateCommonName=") .append(String.valueOf(this.clusterCertificateCommonName)); sb.append(", characterSet=").append(String.valueOf(this.characterSet)); @@ -1009,7 +1182,10 @@ public boolean equals(Object o) { } DedicatedShardedDatabase other = (DedicatedShardedDatabase) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) + && java.util.Objects.equals( this.clusterCertificateCommonName, other.clusterCertificateCommonName) && java.util.Objects.equals(this.characterSet, other.characterSet) && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) @@ -1035,6 +1211,15 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = + (result * PRIME) + + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); result = (result * PRIME) + (this.clusterCertificateCommonName == null diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabaseSummary.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabaseSummary.java index 730bb08d93..d9084f5e43 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabaseSummary.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/DedicatedShardedDatabaseSummary.java @@ -117,6 +117,57 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The Replication method for sharded database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private DedicatedShardedDatabase.ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. + * @param replicationMethod the value to set + * @return this builder + **/ + public Builder replicationMethod( + DedicatedShardedDatabase.ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); + return this; + } + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @param replicationFactor the value to set + * @return this builder + **/ + public Builder replicationFactor(Integer replicationFactor) { + this.replicationFactor = replicationFactor; + this.__explicitlySet__.add("replicationFactor"); + return this; + } + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @param replicationUnit the value to set + * @return this builder + **/ + public Builder replicationUnit(Integer replicationUnit) { + this.replicationUnit = replicationUnit; + this.__explicitlySet__.add("replicationUnit"); + return this; + } /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -368,6 +419,9 @@ public DedicatedShardedDatabaseSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.replicationMethod, + this.replicationFactor, + this.replicationUnit, this.clusterCertificateCommonName, this.dbWorkload, this.shardingMethod, @@ -420,6 +474,15 @@ public Builder copy(DedicatedShardedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("replicationMethod")) { + this.replicationMethod(model.getReplicationMethod()); + } + if (model.wasPropertyExplicitlySet("replicationFactor")) { + this.replicationFactor(model.getReplicationFactor()); + } + if (model.wasPropertyExplicitlySet("replicationUnit")) { + this.replicationUnit(model.getReplicationUnit()); + } if (model.wasPropertyExplicitlySet("clusterCertificateCommonName")) { this.clusterCertificateCommonName(model.getClusterCertificateCommonName()); } @@ -489,6 +552,9 @@ public DedicatedShardedDatabaseSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + DedicatedShardedDatabase.ReplicationMethod replicationMethod, + Integer replicationFactor, + Integer replicationUnit, String clusterCertificateCommonName, DbWorkload dbWorkload, ShardingMethod shardingMethod, @@ -514,6 +580,9 @@ public DedicatedShardedDatabaseSummary( freeformTags, definedTags, systemTags); + this.replicationMethod = replicationMethod; + this.replicationFactor = replicationFactor; + this.replicationUnit = replicationUnit; this.clusterCertificateCommonName = clusterCertificateCommonName; this.dbWorkload = dbWorkload; this.shardingMethod = shardingMethod; @@ -530,6 +599,50 @@ public DedicatedShardedDatabaseSummary( this.totalDataStorageSizeInGbs = totalDataStorageSizeInGbs; } + /** + * The Replication method for sharded database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final DedicatedShardedDatabase.ReplicationMethod replicationMethod; + + /** + * The Replication method for sharded database. + * @return the value + **/ + public DedicatedShardedDatabase.ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") + private final Integer replicationFactor; + + /** + * The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7. + * + * @return the value + **/ + public Integer getReplicationFactor() { + return replicationFactor; + } + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") + private final Integer replicationUnit; + + /** + * For RAFT replication based sharded database, the value should be atleast twice the number of shards. + * @return the value + **/ + public Integer getReplicationUnit() { + return replicationUnit; + } + /** * The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. * All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for @@ -846,6 +959,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DedicatedShardedDatabaseSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); + sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); + sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); sb.append(", clusterCertificateCommonName=") .append(String.valueOf(this.clusterCertificateCommonName)); sb.append(", dbWorkload=").append(String.valueOf(this.dbWorkload)); @@ -876,7 +992,10 @@ public boolean equals(Object o) { } DedicatedShardedDatabaseSummary other = (DedicatedShardedDatabaseSummary) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.replicationMethod, other.replicationMethod) + && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) + && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) + && java.util.Objects.equals( this.clusterCertificateCommonName, other.clusterCertificateCommonName) && java.util.Objects.equals(this.dbWorkload, other.dbWorkload) && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) @@ -899,6 +1018,15 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + result = + (result * PRIME) + + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + result = + (result * PRIME) + + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); result = (result * PRIME) + (this.clusterCertificateCommonName == null diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/OperationType.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/OperationType.java index a97aba000b..5b476f0866 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/OperationType.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/OperationType.java @@ -27,6 +27,18 @@ public enum OperationType { UploadSignedCertAndGenerateWallet("UPLOAD_SIGNED_CERT_AND_GENERATE_WALLET"), GenerateGsmCertSigningReq("GENERATE_GSM_CERT_SIGNING_REQ"), ConfigureSharding("CONFIGURE_SHARDING"), + ExecuteValidateNetworkTests("EXECUTE_VALIDATE_NETWORK_TESTS"), + UpdateShard("UPDATE_SHARD"), + PrivateDeleteSdb("PRIVATE_DELETE_SDB"), + ProcessShardedDatabase("PROCESS_SHARDED_DATABASE"), + CreateCatalogs("CREATE_CATALOGS"), + CreateShards("CREATE_SHARDS"), + CreateGsmNodes("CREATE_GSM_NODES"), + AddGsmNodes("ADD_GSM_NODES"), + PrivateDeleteAtpdCatalog("PRIVATE_DELETE_ATPD_CATALOG"), + PrivateDeleteAtpdShard("PRIVATE_DELETE_ATPD_SHARD"), + PrivateDeleteGsm("PRIVATE_DELETE_GSM"), + ReinstateProxyInstance("REINSTATE_PROXY_INSTANCE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/PrivateEndpoint.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/PrivateEndpoint.java index 47ea4e522d..129685b00a 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/PrivateEndpoint.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/model/PrivateEndpoint.java @@ -33,6 +33,7 @@ public final class PrivateEndpoint extends com.oracle.bmc.http.internal.Explicit "timeUpdated", "lifecycleState", "lifecycleStateDetails", + "proxyComputeInstanceId", "freeformTags", "definedTags", "systemTags" @@ -51,6 +52,7 @@ public PrivateEndpoint( java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleStateDetails, + String proxyComputeInstanceId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -68,6 +70,7 @@ public PrivateEndpoint( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleStateDetails = lifecycleStateDetails; + this.proxyComputeInstanceId = proxyComputeInstanceId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -285,6 +288,22 @@ public Builder lifecycleStateDetails(String lifecycleStateDetails) { this.__explicitlySet__.add("lifecycleStateDetails"); return this; } + /** + * The identifier of the proxy compute instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") + private String proxyComputeInstanceId; + + /** + * The identifier of the proxy compute instance. + * @param proxyComputeInstanceId the value to set + * @return this builder + **/ + public Builder proxyComputeInstanceId(String proxyComputeInstanceId) { + this.proxyComputeInstanceId = proxyComputeInstanceId; + this.__explicitlySet__.add("proxyComputeInstanceId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -366,6 +385,7 @@ public PrivateEndpoint build() { this.timeUpdated, this.lifecycleState, this.lifecycleStateDetails, + this.proxyComputeInstanceId, this.freeformTags, this.definedTags, this.systemTags); @@ -416,6 +436,9 @@ public Builder copy(PrivateEndpoint model) { if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { this.lifecycleStateDetails(model.getLifecycleStateDetails()); } + if (model.wasPropertyExplicitlySet("proxyComputeInstanceId")) { + this.proxyComputeInstanceId(model.getProxyComputeInstanceId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -677,6 +700,20 @@ public String getLifecycleStateDetails() { return lifecycleStateDetails; } + /** + * The identifier of the proxy compute instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") + private final String proxyComputeInstanceId; + + /** + * The identifier of the proxy compute instance. + * @return the value + **/ + public String getProxyComputeInstanceId() { + return proxyComputeInstanceId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -758,6 +795,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", proxyComputeInstanceId=").append(String.valueOf(this.proxyComputeInstanceId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -788,6 +826,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals( + this.proxyComputeInstanceId, other.proxyComputeInstanceId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -821,6 +861,11 @@ public int hashCode() { + (this.lifecycleStateDetails == null ? 43 : this.lifecycleStateDetails.hashCode()); + result = + (result * PRIME) + + (this.proxyComputeInstanceId == null + ? 43 + : this.proxyComputeInstanceId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GenerateGsmCertificateSigningRequestRequest.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GenerateGsmCertificateSigningRequestRequest.java index a99504c23f..2b2dfa6749 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GenerateGsmCertificateSigningRequestRequest.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GenerateGsmCertificateSigningRequestRequest.java @@ -76,6 +76,17 @@ public String getIfMatch() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * The ID of the Ca Bundle. + */ + private String caBundleId; + + /** + * The ID of the Ca Bundle. + */ + public String getCaBundleId() { + return caBundleId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -164,6 +175,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * The ID of the Ca Bundle. + */ + private String caBundleId = null; + + /** + * The ID of the Ca Bundle. + * @param caBundleId the value to set + * @return this builder instance + */ + public Builder caBundleId(String caBundleId) { + this.caBundleId = caBundleId; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -196,6 +222,7 @@ public Builder copy(GenerateGsmCertificateSigningRequestRequest o) { opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); + caBundleId(o.getCaBundleId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -233,8 +260,9 @@ public GenerateGsmCertificateSigningRequestRequest buildWithoutInvocationCallbac request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; + request.caBundleId = caBundleId; return request; - // new GenerateGsmCertificateSigningRequestRequest(shardedDatabaseId, opcRequestId, ifMatch, opcRetryToken); + // new GenerateGsmCertificateSigningRequestRequest(shardedDatabaseId, opcRequestId, ifMatch, opcRetryToken, caBundleId); } } @@ -247,7 +275,8 @@ public Builder toBuilder() { .shardedDatabaseId(shardedDatabaseId) .opcRequestId(opcRequestId) .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .caBundleId(caBundleId); } /** @@ -267,6 +296,7 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",caBundleId=").append(String.valueOf(this.caBundleId)); sb.append(")"); return sb.toString(); } @@ -286,7 +316,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shardedDatabaseId, other.shardedDatabaseId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.caBundleId, other.caBundleId); } @Override @@ -301,6 +332,7 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.caBundleId == null ? 43 : this.caBundleId.hashCode()); return result; } } diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetPrivateEndpointRequest.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetPrivateEndpointRequest.java index 3b8ec19a3b..d8c0b40830 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetPrivateEndpointRequest.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetPrivateEndpointRequest.java @@ -22,6 +22,27 @@ public class GetPrivateEndpointRequest extends com.oracle.bmc.requests.BmcReques public String getPrivateEndpointId() { return privateEndpointId; } + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } /** * The client request ID for tracing. */ @@ -56,6 +77,31 @@ public Builder privateEndpointId(String privateEndpointId) { return this; } + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + /** * The client request ID for tracing. */ @@ -100,6 +146,7 @@ public Builder retryConfiguration( */ public Builder copy(GetPrivateEndpointRequest o) { privateEndpointId(o.getPrivateEndpointId()); + ifNoneMatch(o.getIfNoneMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -134,9 +181,10 @@ public GetPrivateEndpointRequest build() { public GetPrivateEndpointRequest buildWithoutInvocationCallback() { GetPrivateEndpointRequest request = new GetPrivateEndpointRequest(); request.privateEndpointId = privateEndpointId; + request.ifNoneMatch = ifNoneMatch; request.opcRequestId = opcRequestId; return request; - // new GetPrivateEndpointRequest(privateEndpointId, opcRequestId); + // new GetPrivateEndpointRequest(privateEndpointId, ifNoneMatch, opcRequestId); } } @@ -145,7 +193,10 @@ public GetPrivateEndpointRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().privateEndpointId(privateEndpointId).opcRequestId(opcRequestId); + return new Builder() + .privateEndpointId(privateEndpointId) + .ifNoneMatch(ifNoneMatch) + .opcRequestId(opcRequestId); } /** @@ -162,6 +213,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -179,6 +231,7 @@ public boolean equals(Object o) { GetPrivateEndpointRequest other = (GetPrivateEndpointRequest) o; return super.equals(o) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -189,6 +242,7 @@ public int hashCode() { result = (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetShardedDatabaseRequest.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetShardedDatabaseRequest.java index 994e64eecc..8a3f336b78 100644 --- a/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetShardedDatabaseRequest.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/GetShardedDatabaseRequest.java @@ -37,6 +37,27 @@ public String getShardedDatabaseId() { public String getMetadata() { return metadata; } + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } /** * The client request ID for tracing. */ @@ -90,6 +111,31 @@ public Builder metadata(String metadata) { return this; } + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the + * {@code If-None-Match} header to the value of the ETag from a previous GET (or + * POST or PUT) response for that resource. The server will return with + * either a 304 Not Modified response if the resource has not changed, or a + * 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + /** * The client request ID for tracing. */ @@ -135,6 +181,7 @@ public Builder retryConfiguration( public Builder copy(GetShardedDatabaseRequest o) { shardedDatabaseId(o.getShardedDatabaseId()); metadata(o.getMetadata()); + ifNoneMatch(o.getIfNoneMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -170,9 +217,10 @@ public GetShardedDatabaseRequest buildWithoutInvocationCallback() { GetShardedDatabaseRequest request = new GetShardedDatabaseRequest(); request.shardedDatabaseId = shardedDatabaseId; request.metadata = metadata; + request.ifNoneMatch = ifNoneMatch; request.opcRequestId = opcRequestId; return request; - // new GetShardedDatabaseRequest(shardedDatabaseId, metadata, opcRequestId); + // new GetShardedDatabaseRequest(shardedDatabaseId, metadata, ifNoneMatch, opcRequestId); } } @@ -184,6 +232,7 @@ public Builder toBuilder() { return new Builder() .shardedDatabaseId(shardedDatabaseId) .metadata(metadata) + .ifNoneMatch(ifNoneMatch) .opcRequestId(opcRequestId); } @@ -202,6 +251,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",shardedDatabaseId=").append(String.valueOf(this.shardedDatabaseId)); sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -220,6 +270,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.shardedDatabaseId, other.shardedDatabaseId) && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -231,6 +282,7 @@ public int hashCode() { (result * PRIME) + (this.shardedDatabaseId == null ? 43 : this.shardedDatabaseId.hashCode()); result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/ReinstateProxyInstanceRequest.java similarity index 66% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java rename to bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/ReinstateProxyInstanceRequest.java index ad3ea38528..04fc36aca4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/requests/ReinstateProxyInstanceRequest.java @@ -2,57 +2,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.requests; +package com.oracle.bmc.globallydistributeddatabase.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.globallydistributeddatabase.model.*; /** - * Example: Click here to see how to use UpdateAgentRequest. + * Example: Click here to see how to use ReinstateProxyInstanceRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class UpdateAgentRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.databasemigration.model.UpdateAgentDetails> { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301") +public class ReinstateProxyInstanceRequest + extends com.oracle.bmc.requests.BmcRequest { /** - * The OCID of the agent - * + * Oracle Sharded Database PrivateEndpoint identifier */ - private String agentId; + private String privateEndpointId; /** - * The OCID of the agent - * + * Oracle Sharded Database PrivateEndpoint identifier */ - public String getAgentId() { - return agentId; + public String getPrivateEndpointId() { + return privateEndpointId; } /** - * Update ODMS Agent properties. - * + * The client request ID for tracing. */ - private com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails; + private String opcRequestId; /** - * Update ODMS Agent properties. - * + * The client request ID for tracing. */ - public com.oracle.bmc.databasemigration.model.UpdateAgentDetails getUpdateAgentDetails() { - return updateAgentDetails; + public String getOpcRequestId() { + return opcRequestId; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. * */ - private String opcRequestId; + private String ifMatch; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. * */ - public String getOpcRequestId() { - return opcRequestId; + public String getIfMatch() { + return ifMatch; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -75,96 +76,66 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.databasemigration.model.UpdateAgentDetails getBody$() { - return updateAgentDetails; - } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - UpdateAgentRequest, com.oracle.bmc.databasemigration.model.UpdateAgentDetails> { + ReinstateProxyInstanceRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the agent - * + * Oracle Sharded Database PrivateEndpoint identifier */ - private String agentId = null; + private String privateEndpointId = null; /** - * The OCID of the agent - * - * @param agentId the value to set + * Oracle Sharded Database PrivateEndpoint identifier + * @param privateEndpointId the value to set * @return this builder instance */ - public Builder agentId(String agentId) { - this.agentId = agentId; + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; return this; } /** - * Update ODMS Agent properties. - * + * The client request ID for tracing. */ - private com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails = null; + private String opcRequestId = null; /** - * Update ODMS Agent properties. - * - * @param updateAgentDetails the value to set + * The client request ID for tracing. + * @param opcRequestId the value to set * @return this builder instance */ - public Builder updateAgentDetails( - com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails) { - this.updateAgentDetails = updateAgentDetails; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. * */ - private String opcRequestId = null; + private String ifMatch = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST 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 opcRequestId the value to set + * @param ifMatch the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -193,31 +164,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. * @param invocationCallback the invocation callback to be set for the request @@ -245,62 +191,49 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateAgentRequest o) { - agentId(o.getAgentId()); - updateAgentDetails(o.getUpdateAgentDetails()); + public Builder copy(ReinstateProxyInstanceRequest o) { + privateEndpointId(o.getPrivateEndpointId()); opcRequestId(o.getOpcRequestId()); - opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of UpdateAgentRequest as configured by this builder + * Build the instance of ReinstateProxyInstanceRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of UpdateAgentRequest + * @return instance of ReinstateProxyInstanceRequest */ - public UpdateAgentRequest build() { - UpdateAgentRequest request = buildWithoutInvocationCallback(); + public ReinstateProxyInstanceRequest build() { + ReinstateProxyInstanceRequest 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.UpdateAgentDetails body) { - updateAgentDetails(body); - return this; - } - - /** - * Build the instance of UpdateAgentRequest as configured by this builder + * Build the instance of ReinstateProxyInstanceRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of UpdateAgentRequest + * @return instance of ReinstateProxyInstanceRequest */ - public UpdateAgentRequest buildWithoutInvocationCallback() { - UpdateAgentRequest request = new UpdateAgentRequest(); - request.agentId = agentId; - request.updateAgentDetails = updateAgentDetails; + public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { + ReinstateProxyInstanceRequest request = new ReinstateProxyInstanceRequest(); + request.privateEndpointId = privateEndpointId; request.opcRequestId = opcRequestId; - request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; return request; - // new UpdateAgentRequest(agentId, updateAgentDetails, opcRequestId, opcRetryToken, ifMatch); + // new ReinstateProxyInstanceRequest(privateEndpointId, opcRequestId, ifMatch, opcRetryToken); } } @@ -310,11 +243,10 @@ public UpdateAgentRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .agentId(agentId) - .updateAgentDetails(updateAgentDetails) + .privateEndpointId(privateEndpointId) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken); } /** @@ -330,11 +262,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(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); 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(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); } @@ -344,34 +275,30 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAgentRequest)) { + if (!(o instanceof ReinstateProxyInstanceRequest)) { return false; } - UpdateAgentRequest other = (UpdateAgentRequest) o; + ReinstateProxyInstanceRequest other = (ReinstateProxyInstanceRequest) 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.privateEndpointId, other.privateEndpointId) && 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.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.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/responses/ReinstateProxyInstanceResponse.java similarity index 60% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java rename to bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/responses/ReinstateProxyInstanceResponse.java index e0810f625c..2150268c07 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java +++ b/bmc-globallydistributeddatabase/src/main/java/com/oracle/bmc/globallydistributeddatabase/responses/ReinstateProxyInstanceResponse.java @@ -2,12 +2,27 @@ * 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.globallydistributeddatabase.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.globallydistributeddatabase.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301") +public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } -@javax.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. @@ -25,12 +40,19 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) - private ChangeAgentCompartmentResponse( + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ReinstateProxyInstanceResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, String opcRequestId) { super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; } @@ -49,6 +71,23 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) return this; } + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -72,9 +111,10 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ChangeAgentCompartmentResponse o) { + public Builder copy(ReinstateProxyInstanceResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); return this; @@ -84,8 +124,9 @@ public Builder copy(ChangeAgentCompartmentResponse o) { * Build the response object. * @return the response object */ - public ChangeAgentCompartmentResponse build() { - return new ChangeAgentCompartmentResponse(__httpStatusCode__, headers, opcRequestId); + public ReinstateProxyInstanceResponse build() { + return new ReinstateProxyInstanceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -102,6 +143,7 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(")"); return sb.toString(); @@ -112,18 +154,23 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeAgentCompartmentResponse)) { + if (!(o instanceof ReinstateProxyInstanceResponse)) { return false; } - ChangeAgentCompartmentResponse other = (ChangeAgentCompartmentResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + ReinstateProxyInstanceResponse other = (ReinstateProxyInstanceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 1265978d3e..9dabeaddbd 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-goldengate @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java index f2be66d02c..3e6f48bc80 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java @@ -60,6 +60,42 @@ public interface GoldenGate extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Adds a lock to a Connection resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddConnectionLock API. + */ + AddConnectionLockResponse addConnectionLock(AddConnectionLockRequest request); + + /** + * Adds a lock to a DeploymentBackup resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDeploymentBackupLock API. + */ + AddDeploymentBackupLockResponse addDeploymentBackupLock(AddDeploymentBackupLockRequest request); + + /** + * Adds a lock to a Deployment resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use AddDeploymentLock API. + */ + AddDeploymentLockResponse addDeploymentLock(AddDeploymentLockRequest request); + /** * Cancels a Deployment Backup creation process. * @param request The request object containing the details to send @@ -379,6 +415,19 @@ DeleteDatabaseRegistrationResponse deleteDatabaseRegistration( */ ExportDeploymentWalletResponse exportDeploymentWallet(ExportDeploymentWalletRequest request); + /** + * Generates a Pre-Authenticated Request Object URL to a DB2 for z/OS library that needs to be uploaded to your DB2 for z/OS server in order to establish GoldenGate connections to it. For licensing reasons, the URL is accessible for 10 minutes only. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GenerateLibraryUrl API. + */ + GenerateLibraryUrlResponse generateLibraryUrl(GenerateLibraryUrlRequest request); + /** * Retrieves a Certificate. * @@ -643,7 +692,7 @@ ListDeploymentWalletsOperationsResponse listDeploymentWalletsOperations( ListMessagesResponse listMessages(ListMessagesRequest request); /** - * Lists the TrailFiles for a deployment. + * Lists the TrailFiles for a deployment. Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -656,7 +705,7 @@ ListDeploymentWalletsOperationsResponse listDeploymentWalletsOperations( ListTrailFilesResponse listTrailFiles(ListTrailFilesRequest request); /** - * Lists the Trail Sequences for a TrailFile in a given deployment. + * Lists the Trail Sequences for a TrailFile in a given deployment. Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -707,6 +756,43 @@ ListDeploymentWalletsOperationsResponse listDeploymentWalletsOperations( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Removes a lock from a Connection resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveConnectionLock API. + */ + RemoveConnectionLockResponse removeConnectionLock(RemoveConnectionLockRequest request); + + /** + * Removes a lock from a DeploymentBackup resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDeploymentBackupLock API. + */ + RemoveDeploymentBackupLockResponse removeDeploymentBackupLock( + RemoveDeploymentBackupLockRequest request); + + /** + * Removes a lock from a Deployment resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RemoveDeploymentLock API. + */ + RemoveDeploymentLockResponse removeDeploymentLock(RemoveDeploymentLockRequest request); + /** * Reschedules a DeploymentUpgrade, applicable only for DeploymentUpgrade in Waiting state. When provided, If-Match is checked against ETag values of the resource. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java index 01f15f18f5..da564be07e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java @@ -59,6 +59,54 @@ public interface GoldenGateAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Adds a lock to a Connection resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future addConnectionLock( + AddConnectionLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddConnectionLockRequest, AddConnectionLockResponse> + handler); + + /** + * Adds a lock to a DeploymentBackup resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future addDeploymentBackupLock( + AddDeploymentBackupLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDeploymentBackupLockRequest, AddDeploymentBackupLockResponse> + handler); + + /** + * Adds a lock to a Deployment resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future addDeploymentLock( + AddDeploymentLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + AddDeploymentLockRequest, AddDeploymentLockResponse> + handler); + /** * Cancels a Deployment Backup creation process. * @@ -462,6 +510,23 @@ java.util.concurrent.Future exportDeploymentWall ExportDeploymentWalletRequest, ExportDeploymentWalletResponse> handler); + /** + * Generates a Pre-Authenticated Request Object URL to a DB2 for z/OS library that needs to be uploaded to your DB2 for z/OS server in order to establish GoldenGate connections to it. For licensing reasons, the URL is accessible for 10 minutes only. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future generateLibraryUrl( + GenerateLibraryUrlRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateLibraryUrlRequest, GenerateLibraryUrlResponse> + handler); + /** * Retrieves a Certificate. * @@ -797,7 +862,7 @@ java.util.concurrent.Future listMessages( handler); /** - * Lists the TrailFiles for a deployment. + * Lists the TrailFiles for a deployment. Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c. * * * @param request The request object containing the details to send @@ -813,7 +878,7 @@ java.util.concurrent.Future listTrailFiles( handler); /** - * Lists the Trail Sequences for a TrailFile in a given deployment. + * Lists the Trail Sequences for a TrailFile in a given deployment. Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c. * * * @param request The request object containing the details to send @@ -879,6 +944,54 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Removes a lock from a Connection resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future removeConnectionLock( + RemoveConnectionLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveConnectionLockRequest, RemoveConnectionLockResponse> + handler); + + /** + * Removes a lock from a DeploymentBackup resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future removeDeploymentBackupLock( + RemoveDeploymentBackupLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentBackupLockRequest, RemoveDeploymentBackupLockResponse> + handler); + + /** + * Removes a lock from a Deployment resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future removeDeploymentLock( + RemoveDeploymentLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentLockRequest, RemoveDeploymentLockResponse> + handler); + /** * Reschedules a DeploymentUpgrade, applicable only for DeploymentUpgrade in Waiting state. When provided, If-Match is checked against ETag values of the resource. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java index 36bf6c7298..32885c2136 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java @@ -457,6 +457,161 @@ public void close() { client.close(); } + @Override + public java.util.concurrent.Future addConnectionLock( + AddConnectionLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddConnectionLockRequest, AddConnectionLockResponse> + handler) { + LOG.trace("Called async addConnectionLock"); + final AddConnectionLockRequest interceptedRequest = + AddConnectionLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddConnectionLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddConnectionLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/AddConnectionLock"); + final java.util.function.Function + transformer = + AddConnectionLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + AddConnectionLockRequest, AddConnectionLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getAddResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + AddConnectionLockRequest, AddConnectionLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future addDeploymentBackupLock( + AddDeploymentBackupLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDeploymentBackupLockRequest, AddDeploymentBackupLockResponse> + handler) { + LOG.trace("Called async addDeploymentBackupLock"); + final AddDeploymentBackupLockRequest interceptedRequest = + AddDeploymentBackupLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddDeploymentBackupLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddDeploymentBackupLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/AddDeploymentBackupLock"); + final java.util.function.Function< + javax.ws.rs.core.Response, AddDeploymentBackupLockResponse> + transformer = + AddDeploymentBackupLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + AddDeploymentBackupLockRequest, AddDeploymentBackupLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + AddDeploymentBackupLockRequest, AddDeploymentBackupLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getAddResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + AddDeploymentBackupLockRequest, AddDeploymentBackupLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future addDeploymentLock( + AddDeploymentLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDeploymentLockRequest, AddDeploymentLockResponse> + handler) { + LOG.trace("Called async addDeploymentLock"); + final AddDeploymentLockRequest interceptedRequest = + AddDeploymentLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddDeploymentLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddDeploymentLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/AddDeploymentLock"); + final java.util.function.Function + transformer = + AddDeploymentLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + AddDeploymentLockRequest, AddDeploymentLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getAddResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + AddDeploymentLockRequest, AddDeploymentLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future cancelDeploymentBackup( CancelDeploymentBackupRequest request, @@ -1680,6 +1835,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future generateLibraryUrl( + GenerateLibraryUrlRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateLibraryUrlRequest, GenerateLibraryUrlResponse> + handler) { + LOG.trace("Called async generateLibraryUrl"); + final GenerateLibraryUrlRequest interceptedRequest = + GenerateLibraryUrlConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateLibraryUrlConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "GenerateLibraryUrl", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GenerateLibraryUrl"); + final java.util.function.Function + transformer = + GenerateLibraryUrlConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateLibraryUrlRequest, GenerateLibraryUrlResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateLibraryUrlDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateLibraryUrlRequest, GenerateLibraryUrlResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getCertificate( GetCertificateRequest request, @@ -2853,6 +3060,166 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future removeConnectionLock( + RemoveConnectionLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveConnectionLockRequest, RemoveConnectionLockResponse> + handler) { + LOG.trace("Called async removeConnectionLock"); + final RemoveConnectionLockRequest interceptedRequest = + RemoveConnectionLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveConnectionLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveConnectionLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/RemoveConnectionLock"); + final java.util.function.Function + transformer = + RemoveConnectionLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveConnectionLockRequest, RemoveConnectionLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveConnectionLockRequest, RemoveConnectionLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemoveResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RemoveConnectionLockRequest, RemoveConnectionLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + removeDeploymentBackupLock( + RemoveDeploymentBackupLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentBackupLockRequest, + RemoveDeploymentBackupLockResponse> + handler) { + LOG.trace("Called async removeDeploymentBackupLock"); + final RemoveDeploymentBackupLockRequest interceptedRequest = + RemoveDeploymentBackupLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDeploymentBackupLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveDeploymentBackupLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/RemoveDeploymentBackupLock"); + final java.util.function.Function< + javax.ws.rs.core.Response, RemoveDeploymentBackupLockResponse> + transformer = + RemoveDeploymentBackupLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentBackupLockRequest, RemoveDeploymentBackupLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentBackupLockRequest, + RemoveDeploymentBackupLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemoveResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RemoveDeploymentBackupLockRequest, RemoveDeploymentBackupLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future removeDeploymentLock( + RemoveDeploymentLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentLockRequest, RemoveDeploymentLockResponse> + handler) { + LOG.trace("Called async removeDeploymentLock"); + final RemoveDeploymentLockRequest interceptedRequest = + RemoveDeploymentLockConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDeploymentLockConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveDeploymentLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/RemoveDeploymentLock"); + final java.util.function.Function + transformer = + RemoveDeploymentLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentLockRequest, RemoveDeploymentLockResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RemoveDeploymentLockRequest, RemoveDeploymentLockResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRemoveResourceLockDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RemoveDeploymentLockRequest, RemoveDeploymentLockResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future rescheduleDeploymentUpgrade( diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java index 97a370b003..9d9ed17b9c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java @@ -547,6 +547,130 @@ public void close() { client.close(); } + @Override + public AddConnectionLockResponse addConnectionLock(AddConnectionLockRequest request) { + LOG.trace("Called addConnectionLock"); + final AddConnectionLockRequest interceptedRequest = + AddConnectionLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddConnectionLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddConnectionLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/AddConnectionLock"); + java.util.function.Function + transformer = + AddConnectionLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getAddResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public AddDeploymentBackupLockResponse addDeploymentBackupLock( + AddDeploymentBackupLockRequest request) { + LOG.trace("Called addDeploymentBackupLock"); + final AddDeploymentBackupLockRequest interceptedRequest = + AddDeploymentBackupLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddDeploymentBackupLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddDeploymentBackupLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/AddDeploymentBackupLock"); + java.util.function.Function + transformer = + AddDeploymentBackupLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getAddResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public AddDeploymentLockResponse addDeploymentLock(AddDeploymentLockRequest request) { + LOG.trace("Called addDeploymentLock"); + final AddDeploymentLockRequest interceptedRequest = + AddDeploymentLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AddDeploymentLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "AddDeploymentLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/AddDeploymentLock"); + java.util.function.Function + transformer = + AddDeploymentLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getAddResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CancelDeploymentBackupResponse cancelDeploymentBackup( CancelDeploymentBackupRequest request) { @@ -1516,6 +1640,48 @@ public ExportDeploymentWalletResponse exportDeploymentWallet( }); } + @Override + public GenerateLibraryUrlResponse generateLibraryUrl(GenerateLibraryUrlRequest request) { + LOG.trace("Called generateLibraryUrl"); + final GenerateLibraryUrlRequest interceptedRequest = + GenerateLibraryUrlConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateLibraryUrlConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "GenerateLibraryUrl", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/GenerateLibraryUrl"); + java.util.function.Function + transformer = + GenerateLibraryUrlConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getGenerateLibraryUrlDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetCertificateResponse getCertificate(GetCertificateRequest request) { LOG.trace("Called getCertificate"); @@ -2445,6 +2611,130 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request }); } + @Override + public RemoveConnectionLockResponse removeConnectionLock(RemoveConnectionLockRequest request) { + LOG.trace("Called removeConnectionLock"); + final RemoveConnectionLockRequest interceptedRequest = + RemoveConnectionLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveConnectionLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveConnectionLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/RemoveConnectionLock"); + java.util.function.Function + transformer = + RemoveConnectionLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RemoveDeploymentBackupLockResponse removeDeploymentBackupLock( + RemoveDeploymentBackupLockRequest request) { + LOG.trace("Called removeDeploymentBackupLock"); + final RemoveDeploymentBackupLockRequest interceptedRequest = + RemoveDeploymentBackupLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDeploymentBackupLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveDeploymentBackupLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/RemoveDeploymentBackupLock"); + java.util.function.Function + transformer = + RemoveDeploymentBackupLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public RemoveDeploymentLockResponse removeDeploymentLock(RemoveDeploymentLockRequest request) { + LOG.trace("Called removeDeploymentLock"); + final RemoveDeploymentLockRequest interceptedRequest = + RemoveDeploymentLockConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RemoveDeploymentLockConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GoldenGate", + "RemoveDeploymentLock", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/RemoveDeploymentLock"); + java.util.function.Function + transformer = + RemoveDeploymentLockConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRemoveResourceLockDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public RescheduleDeploymentUpgradeResponse rescheduleDeploymentUpgrade( RescheduleDeploymentUpgradeRequest request) { diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddConnectionLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddConnectionLockConverter.java new file mode 100644 index 0000000000..fbcf682b8e --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddConnectionLockConverter.java @@ -0,0 +1,149 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddConnectionLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AddConnectionLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.AddConnectionLockRequest interceptRequest( + com.oracle.bmc.goldengate.requests.AddConnectionLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.AddConnectionLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getConnectionId(), "connectionId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionId())) + .path("actions") + .path("addLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.AddConnectionLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.AddConnectionLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Connection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Connection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Connection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Connection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .AddConnectionLockResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.connection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.AddConnectionLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentBackupLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentBackupLockConverter.java new file mode 100644 index 0000000000..9b96de1ce2 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentBackupLockConverter.java @@ -0,0 +1,153 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentBackupLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AddDeploymentBackupLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.AddDeploymentBackupLockRequest + interceptRequest( + com.oracle.bmc.goldengate.requests.AddDeploymentBackupLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.AddDeploymentBackupLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentBackupId(), "deploymentBackupId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("deploymentBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDeploymentBackupId())) + .path("actions") + .path("addLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .AddDeploymentBackupLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses + .AddDeploymentBackupLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .DeploymentBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.DeploymentBackup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.DeploymentBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.DeploymentBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .AddDeploymentBackupLockResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.deploymentBackup(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.AddDeploymentBackupLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentLockConverter.java new file mode 100644 index 0000000000..c8c558c467 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/AddDeploymentLockConverter.java @@ -0,0 +1,149 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AddDeploymentLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.AddDeploymentLockRequest interceptRequest( + com.oracle.bmc.goldengate.requests.AddDeploymentLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.AddDeploymentLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentId(), "deploymentId must not be blank"); + Validate.notNull(request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("deployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDeploymentId())) + .path("actions") + .path("addLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Deployment>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Deployment + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Deployment + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Deployment> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .AddDeploymentLockResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.deployment(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.AddDeploymentLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CancelDeploymentBackupConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CancelDeploymentBackupConverter.java index 0c2872b418..c5743a79cc 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CancelDeploymentBackupConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CancelDeploymentBackupConverter.java @@ -44,6 +44,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("cancel"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeConnectionCompartmentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeConnectionCompartmentConverter.java index 3d93c36093..db1904fb82 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeConnectionCompartmentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeConnectionCompartmentConverter.java @@ -45,6 +45,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("changeCompartment"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentBackupCompartmentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentBackupCompartmentConverter.java index d9aa32ba61..f4c3cc239d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentBackupCompartmentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentBackupCompartmentConverter.java @@ -46,6 +46,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("changeCompartment"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentCompartmentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentCompartmentConverter.java index d11e401921..df8a574d77 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentCompartmentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ChangeDeploymentCompartmentConverter.java @@ -45,6 +45,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("changeCompartment"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateCertificateConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateCertificateConverter.java index 80aeed5caa..c89f4bf2ab 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateCertificateConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateCertificateConverter.java @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDeploymentId())) .path("certificates"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateConnectionAssignmentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateConnectionAssignmentConverter.java index 1291553f98..c9bd0133cf 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateConnectionAssignmentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/CreateConnectionAssignmentConverter.java @@ -37,6 +37,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20200407").path("connectionAssignments"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteCertificateConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteCertificateConverter.java index ece75a51e0..6732b653e4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteCertificateConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteCertificateConverter.java @@ -44,6 +44,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getCertificateKey())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionAssignmentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionAssignmentConverter.java index aff4f1679c..c556ffc516 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionAssignmentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionAssignmentConverter.java @@ -41,6 +41,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getConnectionAssignmentId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionConverter.java index 144e7719f5..b11372750c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteConnectionConverter.java @@ -39,6 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getConnectionId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentBackupConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentBackupConverter.java index 3fde2f671a..56d2f4eb53 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentBackupConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentBackupConverter.java @@ -39,6 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getDeploymentBackupId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentConverter.java index be16625f47..8123a5e137 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/DeleteDeploymentConverter.java @@ -39,6 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getDeploymentId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateAgentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateLibraryUrlConverter.java similarity index 73% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateAgentConverter.java rename to bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateLibraryUrlConverter.java index 8fd1a2ad39..6f4aa787fc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/UpdateAgentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/GenerateLibraryUrlConverter.java @@ -2,48 +2,55 @@ * 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.internal.http; +package com.oracle.bmc.goldengate.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.databasemigration.model.*; -import com.oracle.bmc.databasemigration.requests.*; -import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class UpdateAgentConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GenerateLibraryUrlConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UpdateAgentConverter.class); + org.slf4j.LoggerFactory.getLogger(GenerateLibraryUrlConverter.class); - public static com.oracle.bmc.databasemigration.requests.UpdateAgentRequest interceptRequest( - com.oracle.bmc.databasemigration.requests.UpdateAgentRequest request) { + public static com.oracle.bmc.goldengate.requests.GenerateLibraryUrlRequest interceptRequest( + com.oracle.bmc.goldengate.requests.GenerateLibraryUrlRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.databasemigration.requests.UpdateAgentRequest request) { + com.oracle.bmc.goldengate.requests.GenerateLibraryUrlRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Validate.notNull(request.getUpdateAgentDetails(), "updateAgentDetails is required"); + Validate.notBlank(request.getDeploymentId(), "deploymentId must not be blank"); + Validate.notNull( + request.getGenerateLibraryUrlDetails(), "generateLibraryUrlDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20210929") - .path("agents") + .path("/20200407") + .path("deployments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getAgentId())); + request.getDeploymentId())) + .path("actions") + .path("generateLibraryUrl"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } @@ -52,10 +59,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-retry-token", request.getOpcRetryToken()); } - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -64,61 +67,60 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse> + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse> + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse> + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse>() { + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse>() { @Override - public com.oracle.bmc.databasemigration.responses.UpdateAgentResponse + public com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.databasemigration.responses.UpdateAgentResponse"); + "Transform function invoked for com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model - .Agent>> + com.oracle.bmc.goldengate.model.LibraryUrl>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model.Agent + com.oracle.bmc.goldengate.model.LibraryUrl .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.databasemigration.model.Agent + com.oracle.bmc.goldengate.model.LibraryUrl .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.databasemigration.model.Agent> + com.oracle.bmc.goldengate.model.LibraryUrl> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse .Builder builder = - com.oracle.bmc.databasemigration.responses - .UpdateAgentResponse.builder() + com.oracle.bmc.goldengate.responses + .GenerateLibraryUrlResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.agent(response.getItem()); + builder.libraryUrl(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -140,7 +142,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.databasemigration.responses.UpdateAgentResponse + com.oracle.bmc.goldengate.responses.GenerateLibraryUrlResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ImportDeploymentWalletConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ImportDeploymentWalletConverter.java index f49e8e6d3e..7ebe8951aa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ImportDeploymentWalletConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/ImportDeploymentWalletConverter.java @@ -44,6 +44,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("importWallet"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveConnectionLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveConnectionLockConverter.java new file mode 100644 index 0000000000..436b88a790 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveConnectionLockConverter.java @@ -0,0 +1,151 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveConnectionLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RemoveConnectionLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.RemoveConnectionLockRequest interceptRequest( + com.oracle.bmc.goldengate.requests.RemoveConnectionLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.RemoveConnectionLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getConnectionId(), "connectionId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionId())) + .path("actions") + .path("removeLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .RemoveConnectionLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Connection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Connection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Connection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Connection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .RemoveConnectionLockResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.connection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.RemoveConnectionLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentBackupLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentBackupLockConverter.java new file mode 100644 index 0000000000..cdf9476f32 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentBackupLockConverter.java @@ -0,0 +1,156 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentBackupLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RemoveDeploymentBackupLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.RemoveDeploymentBackupLockRequest + interceptRequest( + com.oracle.bmc.goldengate.requests.RemoveDeploymentBackupLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.RemoveDeploymentBackupLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentBackupId(), "deploymentBackupId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("deploymentBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDeploymentBackupId())) + .path("actions") + .path("removeLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentBackupLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentBackupLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentBackupLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .RemoveDeploymentBackupLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses + .RemoveDeploymentBackupLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.RemoveDeploymentBackupLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model + .DeploymentBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.DeploymentBackup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.DeploymentBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.DeploymentBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses + .RemoveDeploymentBackupLockResponse.Builder + builder = + com.oracle.bmc.goldengate.responses + .RemoveDeploymentBackupLockResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.deploymentBackup(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses + .RemoveDeploymentBackupLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentLockConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentLockConverter.java new file mode 100644 index 0000000000..79628ef5d8 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RemoveDeploymentLockConverter.java @@ -0,0 +1,151 @@ +/** + * 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.goldengate.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.goldengate.model.*; +import com.oracle.bmc.goldengate.requests.*; +import com.oracle.bmc.goldengate.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentLockConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RemoveDeploymentLockConverter.class); + + public static com.oracle.bmc.goldengate.requests.RemoveDeploymentLockRequest interceptRequest( + com.oracle.bmc.goldengate.requests.RemoveDeploymentLockRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.goldengate.requests.RemoveDeploymentLockRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDeploymentId(), "deploymentId must not be blank"); + Validate.notNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200407") + .path("deployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDeploymentId())) + .path("actions") + .path("removeLock"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.goldengate.responses + .RemoveDeploymentLockResponse>() { + @Override + public com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Deployment>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Deployment + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.goldengate.model.Deployment + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.goldengate.model.Deployment> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse + .Builder + builder = + com.oracle.bmc.goldengate.responses + .RemoveDeploymentLockResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.deployment(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.goldengate.responses.RemoveDeploymentLockResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RestoreDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RestoreDeploymentConverter.java index dfa49acadb..ff8c57ffcd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RestoreDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RestoreDeploymentConverter.java @@ -43,6 +43,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("restore"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RollbackDeploymentUpgradeConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RollbackDeploymentUpgradeConverter.java index e29c5fcd3e..8950106eb8 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RollbackDeploymentUpgradeConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/RollbackDeploymentUpgradeConverter.java @@ -46,6 +46,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("rollback"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StartDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StartDeploymentConverter.java index 16fc5807a2..91a35926db 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StartDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StartDeploymentConverter.java @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("start"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StopDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StopDeploymentConverter.java index 7e1cbe4ee3..bce08b8dc3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StopDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/StopDeploymentConverter.java @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("stop"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateConnectionConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateConnectionConverter.java index b901d2d7dd..712c4768dd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateConnectionConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateConnectionConverter.java @@ -41,6 +41,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getConnectionId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentBackupConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentBackupConverter.java index bf84895e79..9c0ea0d579 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentBackupConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentBackupConverter.java @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getDeploymentBackupId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentConverter.java index 3174b55509..38f9e6ad09 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpdateDeploymentConverter.java @@ -41,6 +41,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getDeploymentId())); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentConverter.java index dc05f93671..9984995848 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentConverter.java @@ -43,6 +43,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("upgrade"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentUpgradeConverter.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentUpgradeConverter.java index 3acea1c278..d637963e0e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentUpgradeConverter.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/internal/http/UpgradeDeploymentUpgradeConverter.java @@ -46,6 +46,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .path("actions") .path("upgrade"); + if (request.getIsLockOverride() != null) { + target = + target.queryParam( + "isLockOverride", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLockOverride())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AddResourceLockDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AddResourceLockDetails.java new file mode 100644 index 0000000000..5e867d5e6f --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AddResourceLockDetails.java @@ -0,0 +1,220 @@ +/** + * 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.goldengate.model; + +/** + * Used to add a resource lock. + * Resource locks are used to prevent certain APIs from being called for the resource. + * A full lock prevents both updating the resource and deleting the resource. A delete + * lock prevents deleting the resource. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddResourceLockDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AddResourceLockDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "message"}) + public AddResourceLockDetails(Type type, String message) { + super(); + this.type = type; + this.message = message; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddResourceLockDetails build() { + AddResourceLockDetails model = new AddResourceLockDetails(this.type, this.message); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddResourceLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of the lock. + **/ + public enum Type { + Full("FULL"), + Delete("DELETE"), + ; + + 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); + } + }; + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * @return the value + **/ + public Type getType() { + return type; + } + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + * @return the value + **/ + public String getMessage() { + return message; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AddResourceLockDetails("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddResourceLockDetails)) { + return false; + } + + AddResourceLockDetails other = (AddResourceLockDetails) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.message, other.message) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java index f53e763480..512974e8da 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -233,6 +242,7 @@ public AmazonKinesisConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -282,6 +292,9 @@ public Builder copy(AmazonKinesisConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -334,6 +347,7 @@ public AmazonKinesisConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -354,6 +368,7 @@ public AmazonKinesisConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java index 552487cc13..a61ab40e8a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonKinesisConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Amazon Kinesis technology type. **/ @@ -239,6 +248,7 @@ public AmazonKinesisConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.accessKeyId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -300,6 +310,9 @@ public Builder copy(AmazonKinesisConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -340,6 +353,7 @@ public AmazonKinesisConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, AmazonKinesisConnection.TechnologyType technologyType, String accessKeyId) { super( @@ -359,7 +373,8 @@ public AmazonKinesisConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.accessKeyId = accessKeyId; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnection.java index 089074a309..2db3e238ba 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -257,6 +266,7 @@ public AmazonRedshiftConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -307,6 +317,9 @@ public Builder copy(AmazonRedshiftConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -362,6 +375,7 @@ public AmazonRedshiftConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -383,6 +397,7 @@ public AmazonRedshiftConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnectionSummary.java index 091df7b8c3..7c3f3402a2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonRedshiftConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Amazon Redshift technology type. **/ @@ -263,6 +272,7 @@ public AmazonRedshiftConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.connectionUrl, this.username); @@ -325,6 +335,9 @@ public Builder copy(AmazonRedshiftConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -368,6 +381,7 @@ public AmazonRedshiftConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, AmazonRedshiftConnection.TechnologyType technologyType, String connectionUrl, String username) { @@ -388,7 +402,8 @@ public AmazonRedshiftConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.connectionUrl = connectionUrl; this.username = username; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java index 357655d06b..ad6aa80543 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3Connection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -235,6 +244,7 @@ public AmazonS3Connection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -284,6 +294,9 @@ public Builder copy(AmazonS3Connection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -336,6 +349,7 @@ public AmazonS3Connection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -356,6 +370,7 @@ public AmazonS3Connection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java index 3a9373c8a9..5f9bce7f3c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AmazonS3ConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Amazon S3 technology type. **/ @@ -241,6 +250,7 @@ public AmazonS3ConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.accessKeyId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -302,6 +312,9 @@ public Builder copy(AmazonS3ConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -342,6 +355,7 @@ public AmazonS3ConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, AmazonS3Connection.TechnologyType technologyType, String accessKeyId) { super( @@ -361,7 +375,8 @@ public AmazonS3ConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.accessKeyId = accessKeyId; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnection.java index 0585a469bb..6ea1890ce0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -311,6 +320,7 @@ public AzureDataLakeStorageConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -364,6 +374,9 @@ public Builder copy(AzureDataLakeStorageConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -428,6 +441,7 @@ public AzureDataLakeStorageConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -452,6 +466,7 @@ public AzureDataLakeStorageConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnectionSummary.java index 7e81ea7772..462db6af26 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureDataLakeStorageConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Azure Data Lake Storage technology type. **/ @@ -319,6 +328,7 @@ public AzureDataLakeStorageConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.authenticationType, this.accountName, @@ -384,6 +394,9 @@ public Builder copy(AzureDataLakeStorageConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -436,6 +449,7 @@ public AzureDataLakeStorageConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, AzureDataLakeStorageConnection.TechnologyType technologyType, AzureDataLakeStorageConnection.AuthenticationType authenticationType, String accountName, @@ -459,7 +473,8 @@ public AzureDataLakeStorageConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.authenticationType = authenticationType; this.accountName = accountName; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnection.java index 9cd5d50abe..5aaf05b8ad 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -257,6 +266,7 @@ public AzureSynapseConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -307,6 +317,9 @@ public Builder copy(AzureSynapseConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -362,6 +375,7 @@ public AzureSynapseConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -383,6 +397,7 @@ public AzureSynapseConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnectionSummary.java index 3bc77afde8..c1a995ab36 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/AzureSynapseConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Azure Synapse Analytics technology type. **/ @@ -263,6 +272,7 @@ public AzureSynapseConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.connectionString, this.username); @@ -325,6 +335,9 @@ public Builder copy(AzureSynapseConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -368,6 +381,7 @@ public AzureSynapseConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, AzureSynapseConnection.TechnologyType technologyType, String connectionString, String username) { @@ -388,7 +402,8 @@ public AzureSynapseConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Certificate.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Certificate.java index 6f5573fefc..6db9041aac 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Certificate.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Certificate.java @@ -126,14 +126,14 @@ public Builder deploymentId(String deploymentId) { return this; } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificateContent") private String certificateContent; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @param certificateContent the value to set * @return this builder @@ -600,14 +600,14 @@ public String getDeploymentId() { } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificateContent") private final String certificateContent; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java index f3d25120e3..2b62b14c32 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Connection.java @@ -35,6 +35,7 @@ value = JavaMessageServiceConnection.class, name = "JAVA_MESSAGE_SERVICE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = Db2Connection.class, name = "DB2"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ElasticsearchConnection.class, name = "ELASTICSEARCH" @@ -131,6 +132,7 @@ public class Connection extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "lifecycleDetails", "timeCreated", "timeUpdated", + "locks", "vaultId", "keyId", "ingressIps", @@ -150,6 +152,7 @@ protected Connection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -168,6 +171,7 @@ protected Connection( this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.locks = locks; this.vaultId = vaultId; this.keyId = keyId; this.ingressIps = ingressIps; @@ -431,6 +435,20 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + /** * Refers to the customer's vault OCID. * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate @@ -566,6 +584,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", keyId=").append(String.valueOf(this.keyId)); sb.append(", ingressIps=").append(String.valueOf(this.ingressIps)); @@ -597,6 +616,7 @@ public boolean equals(Object o) { && 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.locks, other.locks) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.keyId, other.keyId) && java.util.Objects.equals(this.ingressIps, other.ingressIps) @@ -627,6 +647,7 @@ public int 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.locks == null ? 43 : this.locks.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.ingressIps == null ? 43 : this.ingressIps.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java index e1b391631c..109913d46b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionSummary.java @@ -103,6 +103,10 @@ value = ElasticsearchConnectionSummary.class, name = "ELASTICSEARCH" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = Db2ConnectionSummary.class, + name = "DB2" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AmazonRedshiftConnectionSummary.class, name = "AMAZON_REDSHIFT" @@ -136,7 +140,8 @@ public class ConnectionSummary extends com.oracle.bmc.http.internal.ExplicitlySe "ingressIps", "nsgIds", "subnetId", - "routingMethod" + "routingMethod", + "locks" }) protected ConnectionSummary( String id, @@ -155,7 +160,8 @@ protected ConnectionSummary( java.util.List ingressIps, java.util.List nsgIds, String subnetId, - RoutingMethod routingMethod) { + RoutingMethod routingMethod, + java.util.List locks) { super(); this.id = id; this.displayName = displayName; @@ -174,6 +180,7 @@ protected ConnectionSummary( this.nsgIds = nsgIds; this.subnetId = subnetId; this.routingMethod = routingMethod; + this.locks = locks; } /** @@ -488,6 +495,20 @@ public RoutingMethod getRoutingMethod() { return routingMethod; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -519,6 +540,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", routingMethod=").append(String.valueOf(this.routingMethod)); + sb.append(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -550,6 +572,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.routingMethod, other.routingMethod) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -582,6 +605,7 @@ public int hashCode() { result = (result * PRIME) + (this.routingMethod == null ? 43 : this.routingMethod.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java index 574899fff5..3ccba6ce60 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ConnectionType.java @@ -28,6 +28,7 @@ public enum ConnectionType { Mongodb("MONGODB"), AmazonKinesis("AMAZON_KINESIS"), AmazonRedshift("AMAZON_REDSHIFT"), + Db2("DB2"), Redis("REDIS"), Elasticsearch("ELASTICSEARCH"), Generic("GENERIC"), diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java index 9dc1f41827..5cf03f546e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -182,6 +191,7 @@ public CreateAmazonKinesisConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -213,6 +223,9 @@ public Builder copy(CreateAmazonKinesisConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -259,6 +272,7 @@ public CreateAmazonKinesisConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -273,6 +287,7 @@ public CreateAmazonKinesisConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java index 4153080f62..30be96f2bf 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -208,6 +217,7 @@ public CreateAmazonRedshiftConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -240,6 +250,9 @@ public Builder copy(CreateAmazonRedshiftConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -289,6 +302,7 @@ public CreateAmazonRedshiftConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -304,6 +318,7 @@ public CreateAmazonRedshiftConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java index 7ea513d37f..3da8afc91d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -186,6 +195,7 @@ public CreateAmazonS3ConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -217,6 +227,9 @@ public Builder copy(CreateAmazonS3ConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -263,6 +276,7 @@ public CreateAmazonS3ConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -277,6 +291,7 @@ public CreateAmazonS3ConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java index 4e31c8ea99..84bd2ab40f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -306,6 +315,7 @@ public CreateAzureDataLakeStorageConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -343,6 +353,9 @@ public Builder copy(CreateAzureDataLakeStorageConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -407,6 +420,7 @@ public CreateAzureDataLakeStorageConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -427,6 +441,7 @@ public CreateAzureDataLakeStorageConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java index f663ac3791..98b93fc4a7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -208,6 +217,7 @@ public CreateAzureSynapseConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -240,6 +250,9 @@ public Builder copy(CreateAzureSynapseConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -289,6 +302,7 @@ public CreateAzureSynapseConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -304,6 +318,7 @@ public CreateAzureSynapseConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateCertificateDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateCertificateDetails.java index 5560ec6734..0473cdd855 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateCertificateDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateCertificateDetails.java @@ -52,14 +52,14 @@ public Builder key(String key) { return this; } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificateContent") private String certificateContent; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @param certificateContent the value to set * @return this builder @@ -124,14 +124,14 @@ public String getKey() { } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificateContent") private final String certificateContent; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java index 5085e21caa..c8358d6b54 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateConnectionDetails.java @@ -71,6 +71,10 @@ value = CreateOciObjectStorageConnectionDetails.class, name = "OCI_OBJECT_STORAGE" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDb2ConnectionDetails.class, + name = "DB2" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateElasticsearchConnectionDetails.class, name = "ELASTICSEARCH" @@ -125,6 +129,7 @@ public class CreateConnectionDetails extends com.oracle.bmc.http.internal.Explic "compartmentId", "freeformTags", "definedTags", + "locks", "vaultId", "keyId", "nsgIds", @@ -137,6 +142,7 @@ protected CreateConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -148,6 +154,7 @@ protected CreateConnectionDetails( this.compartmentId = compartmentId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.locks = locks; this.vaultId = vaultId; this.keyId = keyId; this.nsgIds = nsgIds; @@ -245,6 +252,20 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + /** * Refers to the customer's vault OCID. * If provided, it references a vault where GoldenGate can manage secrets. Customers must add policies to permit GoldenGate @@ -356,6 +377,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", keyId=").append(String.valueOf(this.keyId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); @@ -380,6 +402,7 @@ public boolean equals(Object o) { && 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.locks, other.locks) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.keyId, other.keyId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) @@ -399,6 +422,7 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.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.nsgIds == null ? 43 : this.nsgIds.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java new file mode 100644 index 0000000000..41de0ade7c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java @@ -0,0 +1,759 @@ +/** + * 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.goldengate.model; + +/** + * The information about a new DB2 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDb2ConnectionDetails.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.internal.ExplicitlySetFilter.NAME) +public final class CreateDb2ConnectionDetails 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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + 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("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("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + /** + * The DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private Db2Connection.TechnologyType technologyType; + + /** + * The DB2 technology type. + * @param technologyType the value to set + * @return this builder + **/ + public Builder technologyType(Db2Connection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database. + * + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The name or address of a 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 of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port of an endpoint usually specified for a 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 username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + * @param password the value to set + * @return this builder + **/ + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @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; + } + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @param securityProtocol the value to set + * @return this builder + **/ + public Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + private String sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + * @param sslClientKeystoredb the value to set + * @return this builder + **/ + public Builder sslClientKeystoredb(String sslClientKeystoredb) { + this.sslClientKeystoredb = sslClientKeystoredb; + this.__explicitlySet__.add("sslClientKeystoredb"); + return this; + } + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + private String sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + * @param sslClientKeystash the value to set + * @return this builder + **/ + public Builder sslClientKeystash(String sslClientKeystash) { + this.sslClientKeystash = sslClientKeystash; + this.__explicitlySet__.add("sslClientKeystash"); + return this; + } + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + private String sslServerCertificate; + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + * @param sslServerCertificate the value to set + * @return this builder + **/ + public Builder sslServerCertificate(String sslServerCertificate) { + this.sslServerCertificate = sslServerCertificate; + this.__explicitlySet__.add("sslServerCertificate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDb2ConnectionDetails build() { + CreateDb2ConnectionDetails model = + new CreateDb2ConnectionDetails( + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.locks, + this.vaultId, + this.keyId, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.technologyType, + this.databaseName, + this.host, + this.port, + this.username, + this.password, + this.additionalAttributes, + this.securityProtocol, + this.sslClientKeystoredb, + this.sslClientKeystash, + this.sslServerCertificate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDb2ConnectionDetails 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("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslClientKeystoredb")) { + this.sslClientKeystoredb(model.getSslClientKeystoredb()); + } + if (model.wasPropertyExplicitlySet("sslClientKeystash")) { + this.sslClientKeystash(model.getSslClientKeystash()); + } + if (model.wasPropertyExplicitlySet("sslServerCertificate")) { + this.sslServerCertificate(model.getSslServerCertificate()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDb2ConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + Db2Connection.TechnologyType technologyType, + String databaseName, + String host, + Integer port, + String username, + String password, + java.util.List additionalAttributes, + Db2Connection.SecurityProtocol securityProtocol, + String sslClientKeystoredb, + String sslClientKeystash, + String sslServerCertificate) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; + this.password = password; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystash = sslClientKeystash; + this.sslServerCertificate = sslServerCertificate; + } + + /** + * The DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final Db2Connection.TechnologyType technologyType; + + /** + * The DB2 technology type. + * @return the value + **/ + public Db2Connection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database. + * + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The name or address of a host. + * + * @return the value + **/ + public String getHost() { + return host; + } + + /** + * The port of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port of an endpoint usually specified for a connection. + * + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + * @return the value + **/ + public String getPassword() { + return password; + } + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @return the value + **/ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @return the value + **/ + public Db2Connection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + private final String sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + * @return the value + **/ + public String getSslClientKeystoredb() { + return sslClientKeystoredb; + } + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + private final String sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + * @return the value + **/ + public String getSslClientKeystash() { + return sslClientKeystash; + } + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + private final String sslServerCertificate; + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + * @return the value + **/ + public String getSslServerCertificate() { + return sslServerCertificate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDb2ConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", password=").append(""); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslClientKeystoredb=").append(String.valueOf(this.sslClientKeystoredb)); + sb.append(", sslClientKeystash=").append(String.valueOf(this.sslClientKeystash)); + sb.append(", sslServerCertificate=").append(String.valueOf(this.sslServerCertificate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDb2ConnectionDetails)) { + return false; + } + + CreateDb2ConnectionDetails other = (CreateDb2ConnectionDetails) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslClientKeystoredb, other.sslClientKeystoredb) + && java.util.Objects.equals(this.sslClientKeystash, other.sslClientKeystash) + && java.util.Objects.equals(this.sslServerCertificate, other.sslServerCertificate) + && 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.databaseName == null ? 43 : this.databaseName.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.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = + (result * PRIME) + + (this.sslClientKeystoredb == null + ? 43 + : this.sslClientKeystoredb.hashCode()); + result = + (result * PRIME) + + (this.sslClientKeystash == null ? 43 : this.sslClientKeystash.hashCode()); + result = + (result * PRIME) + + (this.sslServerCertificate == null + ? 43 + : this.sslServerCertificate.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentBackupDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentBackupDetails.java index d181796c73..073a2dbe3c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentBackupDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentBackupDetails.java @@ -31,7 +31,8 @@ public final class CreateDeploymentBackupDetails "bucketName", "objectName", "freeformTags", - "definedTags" + "definedTags", + "locks" }) public CreateDeploymentBackupDetails( String displayName, @@ -41,7 +42,8 @@ public CreateDeploymentBackupDetails( String bucketName, String objectName, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.List locks) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -51,6 +53,7 @@ public CreateDeploymentBackupDetails( this.objectName = objectName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -204,6 +207,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -218,7 +237,8 @@ public CreateDeploymentBackupDetails build() { this.bucketName, this.objectName, this.freeformTags, - this.definedTags); + this.definedTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -251,6 +271,9 @@ public Builder copy(CreateDeploymentBackupDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -398,6 +421,20 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -420,6 +457,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", objectName=").append(String.valueOf(this.objectName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -442,6 +480,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.objectName, other.objectName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -461,6 +500,7 @@ public int hashCode() { result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.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.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentDetails.java index 041f609d36..1ae275cb56 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDeploymentDetails.java @@ -30,6 +30,7 @@ public final class CreateDeploymentDetails "compartmentId", "freeformTags", "definedTags", + "locks", "deploymentBackupId", "subnetId", "loadBalancerSubnetId", @@ -50,6 +51,7 @@ public CreateDeploymentDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String deploymentBackupId, String subnetId, String loadBalancerSubnetId, @@ -69,6 +71,7 @@ public CreateDeploymentDetails( this.compartmentId = compartmentId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.locks = locks; this.deploymentBackupId = deploymentBackupId; this.subnetId = subnetId; this.loadBalancerSubnetId = loadBalancerSubnetId; @@ -204,6 +207,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup being referenced. * @@ -224,6 +243,8 @@ public Builder deploymentBackupId(String deploymentBackupId) { } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -231,6 +252,8 @@ public Builder deploymentBackupId(String deploymentBackupId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @param subnetId the value to set * @return this builder @@ -243,7 +266,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -252,7 +275,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -415,6 +438,7 @@ public CreateDeploymentDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.deploymentBackupId, this.subnetId, this.loadBalancerSubnetId, @@ -453,6 +477,9 @@ public Builder copy(CreateDeploymentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("deploymentBackupId")) { this.deploymentBackupId(model.getDeploymentBackupId()); } @@ -610,6 +637,20 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup being referenced. * @@ -628,6 +669,8 @@ public String getDeploymentBackupId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -635,6 +678,8 @@ public String getDeploymentBackupId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @return the value **/ @@ -645,7 +690,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -654,7 +699,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @return the value **/ @@ -803,6 +848,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(", deploymentBackupId=").append(String.valueOf(this.deploymentBackupId)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", loadBalancerSubnetId=").append(String.valueOf(this.loadBalancerSubnetId)); @@ -836,6 +882,7 @@ public boolean equals(Object o) { && 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.locks, other.locks) && java.util.Objects.equals(this.deploymentBackupId, other.deploymentBackupId) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.loadBalancerSubnetId, other.loadBalancerSubnetId) @@ -864,6 +911,7 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + (this.deploymentBackupId == null diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java index dce68ccaaf..f57c9d08cd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -265,6 +274,7 @@ public CreateElasticsearchConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -300,6 +310,9 @@ public Builder copy(CreateElasticsearchConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -358,6 +371,7 @@ public CreateElasticsearchConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -376,6 +390,7 @@ public CreateElasticsearchConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGenericConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGenericConnectionDetails.java index e90be19122..9b5db5aac0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGenericConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGenericConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -172,6 +181,7 @@ public CreateGenericConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -202,6 +212,9 @@ public Builder copy(CreateGenericConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -245,6 +258,7 @@ public CreateGenericConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -258,6 +272,7 @@ public CreateGenericConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java index d8a4924d1b..826d449c7c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -268,6 +277,7 @@ public CreateGoldenGateConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -303,6 +313,9 @@ public Builder copy(CreateGoldenGateConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -361,6 +374,7 @@ public CreateGoldenGateConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -379,6 +393,7 @@ public CreateGoldenGateConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java index 1f14e05e06..4a688950cf 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleBigQueryConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -166,6 +175,7 @@ public CreateGoogleBigQueryConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -196,6 +206,9 @@ public Builder copy(CreateGoogleBigQueryConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -239,6 +252,7 @@ public CreateGoogleBigQueryConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -252,6 +266,7 @@ public CreateGoogleBigQueryConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java index c3524dbe34..3730dbabe2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoogleCloudStorageConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -166,6 +175,7 @@ public CreateGoogleCloudStorageConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -196,6 +206,9 @@ public Builder copy(CreateGoogleCloudStorageConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -239,6 +252,7 @@ public CreateGoogleCloudStorageConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -252,6 +266,7 @@ public CreateGoogleCloudStorageConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateHdfsConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateHdfsConnectionDetails.java index c62bf00cd8..273ae6ad7a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateHdfsConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateHdfsConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -164,6 +173,7 @@ public CreateHdfsConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -194,6 +204,9 @@ public Builder copy(CreateHdfsConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -237,6 +250,7 @@ public CreateHdfsConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -250,6 +264,7 @@ public CreateHdfsConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java index bd5367f2d1..cf8cc3a0b0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -512,6 +521,7 @@ public CreateJavaMessageServiceConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -559,6 +569,9 @@ public Builder copy(CreateJavaMessageServiceConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -653,6 +666,7 @@ public CreateJavaMessageServiceConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -683,6 +697,7 @@ public CreateJavaMessageServiceConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java index 7a0142306f..bc13092ead 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -378,6 +387,7 @@ public CreateKafkaConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -419,6 +429,9 @@ public Builder copy(CreateKafkaConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -495,6 +508,7 @@ public CreateKafkaConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -519,6 +533,7 @@ public CreateKafkaConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java index d6d75b4935..59e4b870fe 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -351,6 +360,7 @@ public CreateKafkaSchemaRegistryConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -390,6 +400,9 @@ public Builder copy(CreateKafkaSchemaRegistryConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -460,6 +473,7 @@ public CreateKafkaSchemaRegistryConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -482,6 +496,7 @@ public CreateKafkaSchemaRegistryConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java index 1ad002021b..3c55364d36 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -345,6 +354,7 @@ public CreateMicrosoftSqlserverConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -384,6 +394,9 @@ public Builder copy(CreateMicrosoftSqlserverConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -454,6 +467,7 @@ public CreateMicrosoftSqlserverConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -476,6 +490,7 @@ public CreateMicrosoftSqlserverConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java index 06be3e5a76..38f5ab0a16 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -222,6 +231,7 @@ public CreateMongoDbConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -255,6 +265,9 @@ public Builder copy(CreateMongoDbConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -307,6 +320,7 @@ public CreateMongoDbConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -323,6 +337,7 @@ public CreateMongoDbConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java index fe5fca2601..34ce186c38 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -422,6 +431,7 @@ public CreateMysqlConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -465,6 +475,9 @@ public Builder copy(CreateMysqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -547,6 +560,7 @@ public CreateMysqlConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -573,6 +587,7 @@ public CreateMysqlConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java index e8474acfb6..da0492f4d1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -260,6 +269,7 @@ public CreateOciObjectStorageConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -295,6 +305,9 @@ public Builder copy(CreateOciObjectStorageConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -353,6 +366,7 @@ public CreateOciObjectStorageConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -371,6 +385,7 @@ public CreateOciObjectStorageConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java index a9238250f3..4eeb768a4f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java @@ -175,14 +175,14 @@ public Builder adminPassword(String adminPassword) { return this; } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @param certificate the value to set * @return this builder @@ -193,14 +193,14 @@ public Builder certificate(String certificate) { return this; } /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * * @param key the value to set * @return this builder @@ -399,14 +399,14 @@ public String getAdminPassword() { } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private final String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @return the value **/ @@ -415,14 +415,14 @@ public String getCertificate() { } /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java index 4e52557125..669a82ed39 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -194,6 +203,26 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("connectionString"); return this; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @param authenticationMode the value to set + * @return this builder + **/ + public Builder authenticationMode(OracleConnection.AuthenticationMode authenticationMode) { + this.authenticationMode = authenticationMode; + this.__explicitlySet__.add("authenticationMode"); + return this; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. This * attribute is expected to be base64 encoded. @@ -300,6 +329,7 @@ public CreateOracleConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -309,6 +339,7 @@ public CreateOracleConnectionDetails build() { this.username, this.password, this.connectionString, + this.authenticationMode, this.wallet, this.sessionMode, this.privateIp, @@ -336,6 +367,9 @@ public Builder copy(CreateOracleConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -363,6 +397,9 @@ public Builder copy(CreateOracleConnectionDetails model) { if (model.wasPropertyExplicitlySet("connectionString")) { this.connectionString(model.getConnectionString()); } + if (model.wasPropertyExplicitlySet("authenticationMode")) { + this.authenticationMode(model.getAuthenticationMode()); + } if (model.wasPropertyExplicitlySet("wallet")) { this.wallet(model.getWallet()); } @@ -397,6 +434,7 @@ public CreateOracleConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -406,6 +444,7 @@ public CreateOracleConnectionDetails( String username, String password, String connectionString, + OracleConnection.AuthenticationMode authenticationMode, String wallet, OracleConnection.SessionMode sessionMode, String privateIp, @@ -416,6 +455,7 @@ public CreateOracleConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, @@ -425,6 +465,7 @@ public CreateOracleConnectionDetails( this.username = username; this.password = password; this.connectionString = connectionString; + this.authenticationMode = authenticationMode; this.wallet = wallet; this.sessionMode = sessionMode; this.privateIp = privateIp; @@ -499,6 +540,24 @@ public String getConnectionString() { return connectionString; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private final OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @return the value + **/ + public OracleConnection.AuthenticationMode getAuthenticationMode() { + return authenticationMode; + } + /** * The wallet contents Oracle GoldenGate uses to make connections to a database. This * attribute is expected to be base64 encoded. @@ -603,6 +662,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); sb.append(", wallet=").append(String.valueOf(this.wallet)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); @@ -625,6 +685,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.username, other.username) && java.util.Objects.equals(this.password, other.password) && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.authenticationMode, other.authenticationMode) && java.util.Objects.equals(this.wallet, other.wallet) && java.util.Objects.equals(this.sessionMode, other.sessionMode) && java.util.Objects.equals(this.privateIp, other.privateIp) @@ -644,6 +705,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = + (result * PRIME) + + (this.authenticationMode == null + ? 43 + : this.authenticationMode.hashCode()); result = (result * PRIME) + (this.wallet == null ? 43 : this.wallet.hashCode()); result = (result * PRIME) + (this.sessionMode == null ? 43 : this.sessionMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java index 92e5e24e52..9cb1bffdee 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -260,6 +269,7 @@ public CreateOracleNosqlConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -295,6 +305,9 @@ public Builder copy(CreateOracleNosqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -353,6 +366,7 @@ public CreateOracleNosqlConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -371,6 +385,7 @@ public CreateOracleNosqlConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java index baef24c3c3..09164a20d6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -388,6 +397,24 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) 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(); @@ -400,6 +427,7 @@ public CreatePostgresqlConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -418,7 +446,8 @@ public CreatePostgresqlConnectionDetails build() { this.sslCrl, this.sslCert, this.sslKey, - this.privateIp); + this.privateIp, + this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -442,6 +471,9 @@ public Builder copy(CreatePostgresqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -499,6 +531,9 @@ public Builder copy(CreatePostgresqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } return this; } } @@ -521,6 +556,7 @@ public CreatePostgresqlConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -539,13 +575,15 @@ public CreatePostgresqlConnectionDetails( String sslCrl, String sslCert, String sslKey, - String privateIp) { + String privateIp, + String dbSystemId) { super( displayName, description, compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, @@ -565,6 +603,7 @@ public CreatePostgresqlConnectionDetails( this.sslCert = sslCert; this.sslKey = sslKey; this.privateIp = privateIp; + this.dbSystemId = dbSystemId; } /** @@ -809,6 +848,22 @@ public String getPrivateIp() { return privateIp; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + @Override public String toString() { return this.toString(true); @@ -837,6 +892,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCert=").append(String.valueOf(this.sslCert)); sb.append(", sslKey=").append(String.valueOf(this.sslKey)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); return sb.toString(); } @@ -865,6 +921,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCert, other.sslCert) && java.util.Objects.equals(this.sslKey, other.sslKey) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); } @@ -894,6 +951,7 @@ public int 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.privateIp == null ? 43 : this.privateIp.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java index a65cf89c7d..faabb7b1dd 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -304,6 +313,24 @@ public Builder keyStorePassword(String keyStorePassword) { this.__explicitlySet__.add("keyStorePassword"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @param redisClusterId the value to set + * @return this builder + **/ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + this.__explicitlySet__.add("redisClusterId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -316,6 +343,7 @@ public CreateRedisConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -330,7 +358,8 @@ public CreateRedisConnectionDetails build() { this.trustStore, this.trustStorePassword, this.keyStore, - this.keyStorePassword); + this.keyStorePassword, + this.redisClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -354,6 +383,9 @@ public Builder copy(CreateRedisConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -399,6 +431,9 @@ public Builder copy(CreateRedisConnectionDetails model) { if (model.wasPropertyExplicitlySet("keyStorePassword")) { this.keyStorePassword(model.getKeyStorePassword()); } + if (model.wasPropertyExplicitlySet("redisClusterId")) { + this.redisClusterId(model.getRedisClusterId()); + } return this; } } @@ -421,6 +456,7 @@ public CreateRedisConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -435,13 +471,15 @@ public CreateRedisConnectionDetails( String trustStore, String trustStorePassword, String keyStore, - String keyStorePassword) { + String keyStorePassword, + String redisClusterId) { super( displayName, description, compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, @@ -457,6 +495,7 @@ public CreateRedisConnectionDetails( this.trustStorePassword = trustStorePassword; this.keyStore = keyStore; this.keyStorePassword = keyStorePassword; + this.redisClusterId = redisClusterId; } /** @@ -625,6 +664,22 @@ public String getKeyStorePassword() { return keyStorePassword; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private final String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @return the value + **/ + public String getRedisClusterId() { + return redisClusterId; + } + @Override public String toString() { return this.toString(true); @@ -649,6 +704,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", trustStorePassword=").append(""); sb.append(", keyStore=").append(String.valueOf(this.keyStore)); sb.append(", keyStorePassword=").append(""); + sb.append(", redisClusterId=").append(String.valueOf(this.redisClusterId)); sb.append(")"); return sb.toString(); } @@ -673,6 +729,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.trustStorePassword, other.trustStorePassword) && java.util.Objects.equals(this.keyStore, other.keyStore) && java.util.Objects.equals(this.keyStorePassword, other.keyStorePassword) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) && super.equals(other); } @@ -704,6 +761,9 @@ public int hashCode() { result = (result * PRIME) + (this.keyStorePassword == null ? 43 : this.keyStorePassword.hashCode()); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java index f0830dd062..634aa4ec4f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java @@ -74,6 +74,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -259,6 +268,7 @@ public CreateSnowflakeConnectionDetails build() { this.compartmentId, this.freeformTags, this.definedTags, + this.locks, this.vaultId, this.keyId, this.nsgIds, @@ -294,6 +304,9 @@ public Builder copy(CreateSnowflakeConnectionDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -352,6 +365,7 @@ public CreateSnowflakeConnectionDetails( String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, String vaultId, String keyId, java.util.List nsgIds, @@ -370,6 +384,7 @@ public CreateSnowflakeConnectionDetails( compartmentId, freeformTags, definedTags, + locks, vaultId, keyId, nsgIds, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2Connection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2Connection.java new file mode 100644 index 0000000000..fc61d8bf48 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2Connection.java @@ -0,0 +1,775 @@ +/** + * 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.goldengate.model; + +/** + * Represents the metadata of a DB2 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Db2Connection.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.internal.ExplicitlySetFilter.NAME) +public final class Db2Connection 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("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + 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("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("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + /** + * The DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private TechnologyType technologyType; + + /** + * The DB2 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; + } + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The name or address of a 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 of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port of an endpoint usually specified for a 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. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database. + * + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @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; + } + /** + * Security Protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private SecurityProtocol securityProtocol; + + /** + * Security Protocol for the DB2 database. + * @param securityProtocol the value to set + * @return this builder + **/ + public Builder securityProtocol(SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Db2Connection build() { + Db2Connection model = + new Db2Connection( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.locks, + this.vaultId, + this.keyId, + this.ingressIps, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.technologyType, + this.username, + this.host, + this.port, + this.databaseName, + this.additionalAttributes, + this.securityProtocol); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Db2Connection 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("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + 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("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public Db2Connection( + 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, + java.util.List locks, + String vaultId, + String keyId, + java.util.List ingressIps, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + TechnologyType technologyType, + String username, + String host, + Integer port, + String databaseName, + java.util.List additionalAttributes, + SecurityProtocol securityProtocol) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + locks, + vaultId, + keyId, + ingressIps, + nsgIds, + subnetId, + routingMethod); + this.technologyType = technologyType; + this.username = username; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + } + + /** + * The DB2 technology type. + **/ + public enum TechnologyType { + Db2Zos("DB2_ZOS"), + + /** + * This value is used if a service returns a value for this 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 DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final TechnologyType technologyType; + + /** + * The DB2 technology type. + * @return the value + **/ + public TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The name or address of a host. + * + * @return the value + **/ + public String getHost() { + return host; + } + + /** + * The port of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port of an endpoint usually specified for a connection. + * + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database. + * + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @return the value + **/ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Security Protocol for the DB2 database. + **/ + public enum SecurityProtocol { + Plain("PLAIN"), + Tls("TLS"), + + /** + * This value is used if a service returns a value for this 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 for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final SecurityProtocol securityProtocol; + + /** + * Security Protocol for the DB2 database. + * @return the value + **/ + public SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Db2Connection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", username=").append(String.valueOf(this.username)); + 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(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Db2Connection)) { + return false; + } + + Db2Connection other = (Db2Connection) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.username, other.username) + && 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.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && 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.username == null ? 43 : this.username.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.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2ConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2ConnectionSummary.java new file mode 100644 index 0000000000..e461096043 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Db2ConnectionSummary.java @@ -0,0 +1,682 @@ +/** + * 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.goldengate.model; + +/** + * Summary of the DB2 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = Db2ConnectionSummary.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.internal.ExplicitlySetFilter.NAME) +public final class Db2ConnectionSummary 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("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("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + /** + * The DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private Db2Connection.TechnologyType technologyType; + + /** + * The DB2 technology type. + * @param technologyType the value to set + * @return this builder + **/ + public Builder technologyType(Db2Connection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database. + * + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The name or address of a 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 of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port of an endpoint usually specified for a 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 username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @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; + } + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @param securityProtocol the value to set + * @return this builder + **/ + public Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Db2ConnectionSummary build() { + Db2ConnectionSummary model = + new Db2ConnectionSummary( + 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.ingressIps, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.locks, + this.technologyType, + this.databaseName, + this.host, + this.port, + this.username, + this.additionalAttributes, + this.securityProtocol); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Db2ConnectionSummary 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("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public Db2ConnectionSummary( + 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, + java.util.List ingressIps, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + java.util.List locks, + Db2Connection.TechnologyType technologyType, + String databaseName, + String host, + Integer port, + String username, + java.util.List additionalAttributes, + Db2Connection.SecurityProtocol securityProtocol) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + ingressIps, + nsgIds, + subnetId, + routingMethod, + locks); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + } + + /** + * The DB2 technology type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final Db2Connection.TechnologyType technologyType; + + /** + * The DB2 technology type. + * @return the value + **/ + public Db2Connection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database. + * + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The name or address of a host. + * + * @return the value + **/ + public String getHost() { + return host; + } + + /** + * The port of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port of an endpoint usually specified for a connection. + * + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @return the value + **/ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @return the value + **/ + public Db2Connection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Db2ConnectionSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Db2ConnectionSummary)) { + return false; + } + + Db2ConnectionSummary other = (Db2ConnectionSummary) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && 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.databaseName == null ? 43 : this.databaseName.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.username == null ? 43 : this.username.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Deployment.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Deployment.java index f074c6e8b7..d74ed78418 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Deployment.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Deployment.java @@ -33,6 +33,7 @@ public final class Deployment extends com.oracle.bmc.http.internal.ExplicitlySet "lifecycleDetails", "freeformTags", "definedTags", + "locks", "isHealthy", "subnetId", "loadBalancerSubnetId", @@ -75,6 +76,7 @@ public Deployment( String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.List locks, Boolean isHealthy, String subnetId, String loadBalancerSubnetId, @@ -116,6 +118,7 @@ public Deployment( this.lifecycleDetails = lifecycleDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.locks = locks; this.isHealthy = isHealthy; this.subnetId = subnetId; this.loadBalancerSubnetId = loadBalancerSubnetId; @@ -381,6 +384,22 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * True if all of the aggregate resources are working correctly. * @@ -401,6 +420,8 @@ public Builder isHealthy(Boolean isHealthy) { } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -408,6 +429,8 @@ public Builder isHealthy(Boolean isHealthy) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @param subnetId the value to set * @return this builder @@ -420,7 +443,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -429,7 +452,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -907,6 +930,7 @@ public Deployment build() { this.lifecycleDetails, this.freeformTags, this.definedTags, + this.locks, this.isHealthy, this.subnetId, this.loadBalancerSubnetId, @@ -979,6 +1003,9 @@ public Builder copy(Deployment model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("isHealthy")) { this.isHealthy(model.getIsHealthy()); } @@ -1287,6 +1314,20 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + /** * True if all of the aggregate resources are working correctly. * @@ -1305,6 +1346,8 @@ public Boolean getIsHealthy() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -1312,6 +1355,8 @@ public Boolean getIsHealthy() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @return the value **/ @@ -1322,7 +1367,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -1331,7 +1376,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @return the value **/ @@ -1763,6 +1808,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(", isHealthy=").append(String.valueOf(this.isHealthy)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", loadBalancerSubnetId=").append(String.valueOf(this.loadBalancerSubnetId)); @@ -1824,6 +1870,7 @@ public boolean equals(Object o) { && 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.locks, other.locks) && java.util.Objects.equals(this.isHealthy, other.isHealthy) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.loadBalancerSubnetId, other.loadBalancerSubnetId) @@ -1891,6 +1938,7 @@ public int hashCode() { + (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.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + (this.isHealthy == null ? 43 : this.isHealthy.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackup.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackup.java index 8f9d289297..1090778fb5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackup.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackup.java @@ -23,6 +23,7 @@ public final class DeploymentBackup extends com.oracle.bmc.http.internal.Explici @java.beans.ConstructorProperties({ "id", "deploymentId", + "deploymentType", "compartmentId", "displayName", "isAutomatic", @@ -40,11 +41,13 @@ public final class DeploymentBackup extends com.oracle.bmc.http.internal.Explici "timeUpdated", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "locks" }) public DeploymentBackup( String id, String deploymentId, + DeploymentType deploymentType, String compartmentId, String displayName, Boolean isAutomatic, @@ -62,10 +65,12 @@ public DeploymentBackup( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List locks) { super(); this.id = id; this.deploymentId = deploymentId; + this.deploymentType = deploymentType; this.compartmentId = compartmentId; this.displayName = displayName; this.isAutomatic = isAutomatic; @@ -84,6 +89,7 @@ public DeploymentBackup( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -124,6 +130,28 @@ public Builder deploymentId(String deploymentId) { this.__explicitlySet__.add("deploymentId"); return this; } + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + * @param deploymentType the value to set + * @return this builder + **/ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment being referenced. * @@ -471,6 +499,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -480,6 +524,7 @@ public DeploymentBackup build() { new DeploymentBackup( this.id, this.deploymentId, + this.deploymentType, this.compartmentId, this.displayName, this.isAutomatic, @@ -497,7 +542,8 @@ public DeploymentBackup build() { this.timeUpdated, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -512,6 +558,9 @@ public Builder copy(DeploymentBackup model) { if (model.wasPropertyExplicitlySet("deploymentId")) { this.deploymentId(model.getDeploymentId()); } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -566,6 +615,9 @@ public Builder copy(DeploymentBackup model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -613,6 +665,26 @@ public String getDeploymentId() { return deploymentId; } + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + * @return the value + **/ + public DeploymentType getDeploymentType() { + return deploymentType; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment being referenced. * @@ -923,6 +995,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -939,6 +1025,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", isAutomatic=").append(String.valueOf(this.isAutomatic)); @@ -957,6 +1044,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -973,6 +1061,7 @@ public boolean equals(Object o) { DeploymentBackup other = (DeploymentBackup) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.isAutomatic, other.isAutomatic) @@ -991,6 +1080,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -1000,6 +1090,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); @@ -1030,6 +1123,7 @@ public int 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.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackupSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackupSummary.java index 373595ca7f..a50e044f38 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackupSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentBackupSummary.java @@ -26,6 +26,7 @@ public final class DeploymentBackupSummary @java.beans.ConstructorProperties({ "id", "deploymentId", + "deploymentType", "compartmentId", "displayName", "isAutomatic", @@ -43,11 +44,13 @@ public final class DeploymentBackupSummary "timeUpdated", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "locks" }) public DeploymentBackupSummary( String id, String deploymentId, + DeploymentType deploymentType, String compartmentId, String displayName, Boolean isAutomatic, @@ -65,10 +68,12 @@ public DeploymentBackupSummary( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List locks) { super(); this.id = id; this.deploymentId = deploymentId; + this.deploymentType = deploymentType; this.compartmentId = compartmentId; this.displayName = displayName; this.isAutomatic = isAutomatic; @@ -87,6 +92,7 @@ public DeploymentBackupSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -127,6 +133,28 @@ public Builder deploymentId(String deploymentId) { this.__explicitlySet__.add("deploymentId"); return this; } + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private DeploymentType deploymentType; + + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + * @param deploymentType the value to set + * @return this builder + **/ + public Builder deploymentType(DeploymentType deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment being referenced. * @@ -474,6 +502,22 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -483,6 +527,7 @@ public DeploymentBackupSummary build() { new DeploymentBackupSummary( this.id, this.deploymentId, + this.deploymentType, this.compartmentId, this.displayName, this.isAutomatic, @@ -500,7 +545,8 @@ public DeploymentBackupSummary build() { this.timeUpdated, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -515,6 +561,9 @@ public Builder copy(DeploymentBackupSummary model) { if (model.wasPropertyExplicitlySet("deploymentId")) { this.deploymentId(model.getDeploymentId()); } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -569,6 +618,9 @@ public Builder copy(DeploymentBackupSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -616,6 +668,26 @@ public String getDeploymentId() { return deploymentId; } + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final DeploymentType deploymentType; + + /** + * The type of deployment, which can be any one of the Allowed values. + * NOTE: Use of the value 'OGG' is maintained for backward compatibility purposes. + * Its use is discouraged in favor of 'DATABASE_ORACLE'. + * + * @return the value + **/ + public DeploymentType getDeploymentType() { + return deploymentType; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment being referenced. * @@ -926,6 +998,20 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -942,6 +1028,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", isAutomatic=").append(String.valueOf(this.isAutomatic)); @@ -960,6 +1047,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -976,6 +1064,7 @@ public boolean equals(Object o) { DeploymentBackupSummary other = (DeploymentBackupSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.isAutomatic, other.isAutomatic) @@ -994,6 +1083,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -1003,6 +1093,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); @@ -1033,6 +1126,7 @@ public int 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.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentSummary.java index a5824b981d..8a47f1d386 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DeploymentSummary.java @@ -50,7 +50,8 @@ public final class DeploymentSummary extends com.oracle.bmc.http.internal.Explic "timeUpgradeRequired", "deploymentType", "storageUtilizationInBytes", - "isStorageUtilizationLimitExceeded" + "isStorageUtilizationLimitExceeded", + "locks" }) public DeploymentSummary( String id, @@ -80,7 +81,8 @@ public DeploymentSummary( java.util.Date timeUpgradeRequired, DeploymentType deploymentType, Long storageUtilizationInBytes, - Boolean isStorageUtilizationLimitExceeded) { + Boolean isStorageUtilizationLimitExceeded, + java.util.List locks) { super(); this.id = id; this.displayName = displayName; @@ -110,6 +112,7 @@ public DeploymentSummary( this.deploymentType = deploymentType; this.storageUtilizationInBytes = storageUtilizationInBytes; this.isStorageUtilizationLimitExceeded = isStorageUtilizationLimitExceeded; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -331,6 +334,8 @@ public Builder definedTags( } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -338,6 +343,8 @@ public Builder definedTags( /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @param subnetId the value to set * @return this builder @@ -350,7 +357,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -359,7 +366,7 @@ public Builder subnetId(String subnetId) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @param loadBalancerSubnetId the value to set * @return this builder @@ -668,6 +675,22 @@ public Builder isStorageUtilizationLimitExceeded( this.__explicitlySet__.add("isStorageUtilizationLimitExceeded"); return this; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * @param locks the value to set + * @return this builder + **/ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -702,7 +725,8 @@ public DeploymentSummary build() { this.timeUpgradeRequired, this.deploymentType, this.storageUtilizationInBytes, - this.isStorageUtilizationLimitExceeded); + this.isStorageUtilizationLimitExceeded, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -796,6 +820,9 @@ public Builder copy(DeploymentSummary model) { this.isStorageUtilizationLimitExceeded( model.getIsStorageUtilizationLimitExceeded()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -1005,6 +1032,8 @@ public java.util.Map> getDefinedTags() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -1012,6 +1041,8 @@ public java.util.Map> getDefinedTags() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @return the value **/ @@ -1022,7 +1053,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * **/ @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") @@ -1031,7 +1062,7 @@ public String getSubnetId() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. - * For backward compatiblity this is an optional property for now, but it will become mandatory (for public deployments only) after October 1, 2024. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. * * @return the value **/ @@ -1307,6 +1338,20 @@ public Boolean getIsStorageUtilizationLimitExceeded() { return isStorageUtilizationLimitExceeded; } + /** + * Locks associated with this resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * @return the value + **/ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -1351,6 +1396,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.storageUtilizationInBytes)); sb.append(", isStorageUtilizationLimitExceeded=") .append(String.valueOf(this.isStorageUtilizationLimitExceeded)); + sb.append(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -1396,6 +1442,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isStorageUtilizationLimitExceeded, other.isStorageUtilizationLimitExceeded) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -1471,6 +1518,7 @@ public int hashCode() { + (this.isStorageUtilizationLimitExceeded == null ? 43 : this.isStorageUtilizationLimitExceeded.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnection.java index afc3908b71..501713ca4e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -293,6 +302,7 @@ public ElasticsearchConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -345,6 +355,9 @@ public Builder copy(ElasticsearchConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -406,6 +419,7 @@ public ElasticsearchConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -429,6 +443,7 @@ public ElasticsearchConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnectionSummary.java index 809a8fe89f..a369e8d3f8 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ElasticsearchConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Elasticsearch technology type. **/ @@ -300,6 +309,7 @@ public ElasticsearchConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.servers, this.securityProtocol, @@ -364,6 +374,9 @@ public Builder copy(ElasticsearchConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -413,6 +426,7 @@ public ElasticsearchConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, ElasticsearchConnection.TechnologyType technologyType, String servers, ElasticsearchConnection.SecurityProtocol securityProtocol, @@ -435,7 +449,8 @@ public ElasticsearchConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.servers = servers; this.securityProtocol = securityProtocol; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLibraryUrlDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLibraryUrlDetails.java new file mode 100644 index 0000000000..292eceed93 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLibraryUrlDetails.java @@ -0,0 +1,76 @@ +/** + * 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.goldengate.model; + +/** + * The information about generating the library URL. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "libraryType", + defaultImpl = GenerateLibraryUrlDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = GenerateLogReaderComponentLibraryUrlDetails.class, + name = "LOG_READER_COMPONENT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GenerateLibraryUrlDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected GenerateLibraryUrlDetails() { + 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("GenerateLibraryUrlDetails("); + 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 GenerateLibraryUrlDetails)) { + return false; + } + + GenerateLibraryUrlDetails other = (GenerateLibraryUrlDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLogReaderComponentLibraryUrlDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLogReaderComponentLibraryUrlDetails.java new file mode 100644 index 0000000000..e207d48812 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenerateLogReaderComponentLibraryUrlDetails.java @@ -0,0 +1,103 @@ +/** + * 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.goldengate.model; + +/** + * Definition of the additional attributes for default library URL generation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateLogReaderComponentLibraryUrlDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "libraryType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GenerateLogReaderComponentLibraryUrlDetails extends GenerateLibraryUrlDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateLogReaderComponentLibraryUrlDetails build() { + GenerateLogReaderComponentLibraryUrlDetails model = + new GenerateLogReaderComponentLibraryUrlDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateLogReaderComponentLibraryUrlDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public GenerateLogReaderComponentLibraryUrlDetails() { + 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("GenerateLogReaderComponentLibraryUrlDetails("); + 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 GenerateLogReaderComponentLibraryUrlDetails)) { + return false; + } + + GenerateLogReaderComponentLibraryUrlDetails other = + (GenerateLogReaderComponentLibraryUrlDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnection.java index 122a479a2f..8dd3fb87b8 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -241,6 +250,7 @@ public GenericConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -290,6 +300,9 @@ public Builder copy(GenericConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -342,6 +355,7 @@ public GenericConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -362,6 +376,7 @@ public GenericConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnectionSummary.java index bbe47f3826..c1537f0941 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GenericConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Generic technology type. **/ @@ -247,6 +256,7 @@ public GenericConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.host); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -308,6 +318,9 @@ public Builder copy(GenericConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -348,6 +361,7 @@ public GenericConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, GenericConnection.TechnologyType technologyType, String host) { super( @@ -367,7 +381,8 @@ public GenericConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.host = host; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnection.java index 53ca40553d..74076c9295 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -319,6 +328,7 @@ public GoldenGateConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -372,6 +382,9 @@ public Builder copy(GoldenGateConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -436,6 +449,7 @@ public GoldenGateConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -460,6 +474,7 @@ public GoldenGateConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnectionSummary.java index 273aad0659..aa5ce9218c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoldenGateConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The GoldenGate technology type. **/ @@ -325,6 +334,7 @@ public GoldenGateConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.deploymentId, this.host, @@ -390,6 +400,9 @@ public Builder copy(GoldenGateConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -442,6 +455,7 @@ public GoldenGateConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, GoldenGateConnection.TechnologyType technologyType, String deploymentId, String host, @@ -465,7 +479,8 @@ public GoldenGateConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.deploymentId = deploymentId; this.host = host; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnection.java index 8005d79099..a5b15808f1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -215,6 +224,7 @@ public GoogleBigQueryConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -263,6 +273,9 @@ public Builder copy(GoogleBigQueryConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -312,6 +325,7 @@ public GoogleBigQueryConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -331,6 +345,7 @@ public GoogleBigQueryConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnectionSummary.java index 21d4f5d4f8..2268269c58 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleBigQueryConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Google BigQuery technology type. **/ @@ -221,6 +230,7 @@ public GoogleBigQueryConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -281,6 +291,9 @@ public Builder copy(GoogleBigQueryConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -318,6 +331,7 @@ public GoogleBigQueryConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, GoogleBigQueryConnection.TechnologyType technologyType) { super( id, @@ -336,7 +350,8 @@ public GoogleBigQueryConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnection.java index 544152053a..4d68b2de72 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -215,6 +224,7 @@ public GoogleCloudStorageConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -263,6 +273,9 @@ public Builder copy(GoogleCloudStorageConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -312,6 +325,7 @@ public GoogleCloudStorageConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -331,6 +345,7 @@ public GoogleCloudStorageConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnectionSummary.java index 6c21d41b6f..216aae2a0b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/GoogleCloudStorageConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Google Cloud Storage technology type. **/ @@ -221,6 +230,7 @@ public GoogleCloudStorageConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -281,6 +291,9 @@ public Builder copy(GoogleCloudStorageConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -318,6 +331,7 @@ public GoogleCloudStorageConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, GoogleCloudStorageConnection.TechnologyType technologyType) { super( id, @@ -336,7 +350,8 @@ public GoogleCloudStorageConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnection.java index 68b5241683..9570be7a3c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnection.java @@ -126,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -213,6 +222,7 @@ public HdfsConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -261,6 +271,9 @@ public Builder copy(HdfsConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -310,6 +323,7 @@ public HdfsConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -329,6 +343,7 @@ public HdfsConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnectionSummary.java index def83150e5..ff13acf3be 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/HdfsConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Hadoop Distributed File System technology type. **/ @@ -221,6 +230,7 @@ public HdfsConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -281,6 +291,9 @@ public Builder copy(HdfsConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -318,6 +331,7 @@ public HdfsConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, HdfsConnection.TechnologyType technologyType) { super( id, @@ -336,7 +350,8 @@ public HdfsConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnection.java index 2b3cb3d8df..4b96b1da39 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -451,6 +460,7 @@ public JavaMessageServiceConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -510,6 +520,9 @@ public Builder copy(JavaMessageServiceConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -592,6 +605,7 @@ public JavaMessageServiceConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -622,6 +636,7 @@ public JavaMessageServiceConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnectionSummary.java index c8d8faa05b..ad693f3844 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/JavaMessageServiceConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Java Message Service technology type. * @@ -459,6 +468,7 @@ public JavaMessageServiceConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.shouldUseJndi, this.jndiConnectionFactory, @@ -530,6 +540,9 @@ public Builder copy(JavaMessageServiceConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -600,6 +613,7 @@ public JavaMessageServiceConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, JavaMessageServiceConnection.TechnologyType technologyType, Boolean shouldUseJndi, String jndiConnectionFactory, @@ -629,7 +643,8 @@ public JavaMessageServiceConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.shouldUseJndi = shouldUseJndi; this.jndiConnectionFactory = jndiConnectionFactory; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java index 07d70d427a..a44ffead79 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnection.java @@ -126,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -297,6 +306,7 @@ public KafkaConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -349,6 +359,9 @@ public Builder copy(KafkaConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -410,6 +423,7 @@ public KafkaConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -433,6 +447,7 @@ public KafkaConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnectionSummary.java index a0dd0bc212..531b64b79d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Kafka technology type. * @@ -305,6 +314,7 @@ public KafkaConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.streamPoolId, this.bootstrapServers, @@ -369,6 +379,9 @@ public Builder copy(KafkaConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -418,6 +431,7 @@ public KafkaConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, KafkaConnection.TechnologyType technologyType, String streamPoolId, java.util.List bootstrapServers, @@ -440,7 +454,8 @@ public KafkaConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.streamPoolId = streamPoolId; this.bootstrapServers = bootstrapServers; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnection.java index f33058479b..0920995fd3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -307,6 +316,7 @@ public KafkaSchemaRegistryConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -359,6 +369,9 @@ public Builder copy(KafkaSchemaRegistryConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -420,6 +433,7 @@ public KafkaSchemaRegistryConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -443,6 +457,7 @@ public KafkaSchemaRegistryConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnectionSummary.java index 12336d73aa..1d7f5694de 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/KafkaSchemaRegistryConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Kafka (e.g. Confluent) Schema Registry technology type. * @@ -314,6 +323,7 @@ public KafkaSchemaRegistryConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.url, this.authenticationType, @@ -378,6 +388,9 @@ public Builder copy(KafkaSchemaRegistryConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -427,6 +440,7 @@ public KafkaSchemaRegistryConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, KafkaSchemaRegistryConnection.TechnologyType technologyType, String url, KafkaSchemaRegistryConnection.AuthenticationType authenticationType, @@ -449,7 +463,8 @@ public KafkaSchemaRegistryConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.url = url; this.authenticationType = authenticationType; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryType.java new file mode 100644 index 0000000000..b5a36441b3 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryType.java @@ -0,0 +1,42 @@ +/** + * 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.goldengate.model; + +/** + * The type of the library. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum LibraryType { + LogReaderComponent("LOG_READER_COMPONENT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LibraryType v : LibraryType.values()) { + map.put(v.getValue(), v); + } + } + + LibraryType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LibraryType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LibraryType: " + key); + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryUrl.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryUrl.java new file mode 100644 index 0000000000..a3787a448b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/LibraryUrl.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * A Pre-Authenticated Request Object URL to a DB2 for z/OS library that needs to be uploaded to your DB2 for z/OS server in order to establish GoldenGate connections to it. For licensing reasons, the URL is accessible for 10 minutes only. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LibraryUrl.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LibraryUrl extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"url"}) + public LibraryUrl(String url) { + super(); + this.url = url; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The URL of a resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * The URL of a resource. + * + * @param url the value to set + * @return this builder + **/ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LibraryUrl build() { + LibraryUrl model = new LibraryUrl(this.url); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LibraryUrl model) { + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The URL of a resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * The URL of a resource. + * + * @return the value + **/ + public String getUrl() { + return url; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LibraryUrl("); + sb.append("super=").append(super.toString()); + sb.append("url=").append(String.valueOf(this.url)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LibraryUrl)) { + return false; + } + + LibraryUrl other = (LibraryUrl) o; + return java.util.Objects.equals(this.url, other.url) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnection.java index d8029f227c..34015c7f85 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -395,6 +404,7 @@ public MicrosoftSqlserverConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -452,6 +462,9 @@ public Builder copy(MicrosoftSqlserverConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -528,6 +541,7 @@ public MicrosoftSqlserverConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -556,6 +570,7 @@ public MicrosoftSqlserverConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnectionSummary.java index d6742d5abe..546b763597 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MicrosoftSqlserverConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Microsoft SQL Server technology type. **/ @@ -402,6 +411,7 @@ public MicrosoftSqlserverConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.databaseName, this.host, @@ -471,6 +481,9 @@ public Builder copy(MicrosoftSqlserverConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -535,6 +548,7 @@ public MicrosoftSqlserverConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, MicrosoftSqlserverConnection.TechnologyType technologyType, String databaseName, String host, @@ -562,7 +576,8 @@ public MicrosoftSqlserverConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.databaseName = databaseName; this.host = host; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnection.java index b30ee67d4a..720c46d895 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -273,6 +282,7 @@ public MongoDbConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -324,6 +334,9 @@ public Builder copy(MongoDbConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -382,6 +395,7 @@ public MongoDbConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -404,6 +418,7 @@ public MongoDbConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnectionSummary.java index 5d8d80568a..3cf31905be 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MongoDbConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The MongoDB technology type. **/ @@ -279,6 +288,7 @@ public MongoDbConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.connectionString, this.username, @@ -342,6 +352,9 @@ public Builder copy(MongoDbConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -388,6 +401,7 @@ public MongoDbConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, MongoDbConnection.TechnologyType technologyType, String connectionString, String username, @@ -409,7 +423,8 @@ public MongoDbConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnection.java index 72c0cad0e6..698731f50e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnection.java @@ -126,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -391,6 +400,7 @@ public MysqlConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -448,6 +458,9 @@ public Builder copy(MysqlConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -524,6 +537,7 @@ public MysqlConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -552,6 +566,7 @@ public MysqlConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, @@ -580,6 +595,8 @@ public enum TechnologyType { AzureMysql("AZURE_MYSQL"), GoogleCloudSqlMysql("GOOGLE_CLOUD_SQL_MYSQL"), Mariadb("MARIADB"), + MysqlHeatwaveOnAzure("MYSQL_HEATWAVE_ON_AZURE"), + MysqlHeatwaveOnAws("MYSQL_HEATWAVE_ON_AWS"), MysqlServer("MYSQL_SERVER"), OciMysql("OCI_MYSQL"), Singlestoredb("SINGLESTOREDB"), diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnectionSummary.java index 0a906cec94..06d42d5ce3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MysqlConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The MySQL technology type. **/ @@ -399,6 +408,7 @@ public MysqlConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.username, this.host, @@ -468,6 +478,9 @@ public Builder copy(MysqlConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -532,6 +545,7 @@ public MysqlConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, MysqlConnection.TechnologyType technologyType, String username, String host, @@ -559,7 +573,8 @@ public MysqlConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.username = username; this.host = host; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnection.java index 34f0ad3c6a..858f119db4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -271,6 +280,7 @@ public OciObjectStorageConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -322,6 +332,9 @@ public Builder copy(OciObjectStorageConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -380,6 +393,7 @@ public OciObjectStorageConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -402,6 +416,7 @@ public OciObjectStorageConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnectionSummary.java index 6ae9388694..044e301aa1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OciObjectStorageConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The OCI Object Storage technology type. **/ @@ -277,6 +286,7 @@ public OciObjectStorageConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.tenancyId, this.region, @@ -340,6 +350,9 @@ public Builder copy(OciObjectStorageConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -386,6 +399,7 @@ public OciObjectStorageConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, OciObjectStorageConnection.TechnologyType technologyType, String tenancyId, String region, @@ -407,7 +421,8 @@ public OciObjectStorageConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.tenancyId = tenancyId; this.region = region; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OggDeployment.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OggDeployment.java index 6a8ac7ab78..50270a5cdf 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OggDeployment.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OggDeployment.java @@ -106,14 +106,14 @@ public Builder oggVersion(String oggVersion) { return this; } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @param certificate the value to set * @return this builder @@ -286,14 +286,14 @@ public String getOggVersion() { } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private final String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java index c755de203f..a08aeb6c33 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java @@ -6,6 +6,8 @@ /** * Possible operation types. + *

+ * Deprecated value: GoldengateConnectionAssigmnentDelete * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") @@ -31,6 +33,7 @@ public enum OperationType { GoldengateConnectionDelete("GOLDENGATE_CONNECTION_DELETE"), GoldengateConnectionMove("GOLDENGATE_CONNECTION_MOVE"), GoldengateConnectionAssignmentCreate("GOLDENGATE_CONNECTION_ASSIGNMENT_CREATE"), + GoldengateConnectionAssignmentDelete("GOLDENGATE_CONNECTION_ASSIGNMENT_DELETE"), GoldengateConnectionAssigmnentDelete("GOLDENGATE_CONNECTION_ASSIGMNENT_DELETE"), GoldengateDeploymentDiagnosticCollect("GOLDENGATE_DEPLOYMENT_DIAGNOSTIC_COLLECT"), GoldengateDeploymentWalletExport("GOLDENGATE_DEPLOYMENT_WALLET_EXPORT"), diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java index 6601e016b4..311ccfc29b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnection.java @@ -126,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -235,6 +244,26 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("connectionString"); return this; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @param authenticationMode the value to set + * @return this builder + **/ + public Builder authenticationMode(AuthenticationMode authenticationMode) { + this.authenticationMode = authenticationMode; + this.__explicitlySet__.add("authenticationMode"); + return this; + } /** * The mode of the database connection session to be established by the data client. * 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. @@ -327,6 +356,7 @@ public OracleConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -336,6 +366,7 @@ public OracleConnection build() { this.technologyType, this.username, this.connectionString, + this.authenticationMode, this.sessionMode, this.privateIp, this.databaseId); @@ -380,6 +411,9 @@ public Builder copy(OracleConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -407,6 +441,9 @@ public Builder copy(OracleConnection model) { if (model.wasPropertyExplicitlySet("connectionString")) { this.connectionString(model.getConnectionString()); } + if (model.wasPropertyExplicitlySet("authenticationMode")) { + this.authenticationMode(model.getAuthenticationMode()); + } if (model.wasPropertyExplicitlySet("sessionMode")) { this.sessionMode(model.getSessionMode()); } @@ -444,6 +481,7 @@ public OracleConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -453,6 +491,7 @@ public OracleConnection( TechnologyType technologyType, String username, String connectionString, + AuthenticationMode authenticationMode, SessionMode sessionMode, String privateIp, String databaseId) { @@ -468,6 +507,7 @@ public OracleConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, @@ -477,6 +517,7 @@ public OracleConnection( this.technologyType = technologyType; this.username = username; this.connectionString = connectionString; + this.authenticationMode = authenticationMode; this.sessionMode = sessionMode; this.privateIp = privateIp; this.databaseId = databaseId; @@ -490,6 +531,7 @@ public enum TechnologyType { OciAutonomousDatabase("OCI_AUTONOMOUS_DATABASE"), OracleDatabase("ORACLE_DATABASE"), OracleExadata("ORACLE_EXADATA"), + OracleExadataDatabaseAtAzure("ORACLE_EXADATA_DATABASE_AT_AZURE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -582,6 +624,74 @@ public String getConnectionString() { return connectionString; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + public enum AuthenticationMode { + 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(AuthenticationMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuthenticationMode v : AuthenticationMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AuthenticationMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuthenticationMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AuthenticationMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private final AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @return the value + **/ + public AuthenticationMode getAuthenticationMode() { + return authenticationMode; + } + /** * The mode of the database connection session to be established by the data client. * 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. @@ -719,6 +829,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", technologyType=").append(String.valueOf(this.technologyType)); sb.append(", username=").append(String.valueOf(this.username)); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); @@ -739,6 +850,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.technologyType, other.technologyType) && java.util.Objects.equals(this.username, other.username) && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.authenticationMode, other.authenticationMode) && java.util.Objects.equals(this.sessionMode, other.sessionMode) && java.util.Objects.equals(this.privateIp, other.privateIp) && java.util.Objects.equals(this.databaseId, other.databaseId) @@ -756,6 +868,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = + (result * PRIME) + + (this.authenticationMode == null + ? 43 + : this.authenticationMode.hashCode()); result = (result * PRIME) + (this.sessionMode == null ? 43 : this.sessionMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java index e1837fc0a4..3c73f5af02 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Oracle technology type. **/ @@ -237,6 +246,26 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("connectionString"); return this; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @param authenticationMode the value to set + * @return this builder + **/ + public Builder authenticationMode(OracleConnection.AuthenticationMode authenticationMode) { + this.authenticationMode = authenticationMode; + this.__explicitlySet__.add("authenticationMode"); + return this; + } /** * The mode of the database connection session to be established by the data client. * 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. @@ -335,9 +364,11 @@ public OracleConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.username, this.connectionString, + this.authenticationMode, this.sessionMode, this.privateIp, this.databaseId); @@ -400,6 +431,9 @@ public Builder copy(OracleConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -409,6 +443,9 @@ public Builder copy(OracleConnectionSummary model) { if (model.wasPropertyExplicitlySet("connectionString")) { this.connectionString(model.getConnectionString()); } + if (model.wasPropertyExplicitlySet("authenticationMode")) { + this.authenticationMode(model.getAuthenticationMode()); + } if (model.wasPropertyExplicitlySet("sessionMode")) { this.sessionMode(model.getSessionMode()); } @@ -452,9 +489,11 @@ public OracleConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, OracleConnection.TechnologyType technologyType, String username, String connectionString, + OracleConnection.AuthenticationMode authenticationMode, OracleConnection.SessionMode sessionMode, String privateIp, String databaseId) { @@ -475,10 +514,12 @@ public OracleConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.username = username; this.connectionString = connectionString; + this.authenticationMode = authenticationMode; this.sessionMode = sessionMode; this.privateIp = privateIp; this.databaseId = databaseId; @@ -534,6 +575,24 @@ public String getConnectionString() { return connectionString; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private final OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @return the value + **/ + public OracleConnection.AuthenticationMode getAuthenticationMode() { + return authenticationMode; + } + /** * The mode of the database connection session to be established by the data client. * 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. @@ -619,6 +678,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", technologyType=").append(String.valueOf(this.technologyType)); sb.append(", username=").append(String.valueOf(this.username)); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); @@ -639,6 +699,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.technologyType, other.technologyType) && java.util.Objects.equals(this.username, other.username) && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.authenticationMode, other.authenticationMode) && java.util.Objects.equals(this.sessionMode, other.sessionMode) && java.util.Objects.equals(this.privateIp, other.privateIp) && java.util.Objects.equals(this.databaseId, other.databaseId) @@ -656,6 +717,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = + (result * PRIME) + + (this.authenticationMode == null + ? 43 + : this.authenticationMode.hashCode()); result = (result * PRIME) + (this.sessionMode == null ? 43 : this.sessionMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnection.java index 4c9303d6af..ee6aa65275 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -271,6 +280,7 @@ public OracleNosqlConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -322,6 +332,9 @@ public Builder copy(OracleNosqlConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -380,6 +393,7 @@ public OracleNosqlConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -402,6 +416,7 @@ public OracleNosqlConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnectionSummary.java index 5025c76c3c..ff6104fafb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OracleNosqlConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Oracle NoSQL technology type. **/ @@ -277,6 +286,7 @@ public OracleNosqlConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.tenancyId, this.region, @@ -340,6 +350,9 @@ public Builder copy(OracleNosqlConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -386,6 +399,7 @@ public OracleNosqlConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, OracleNosqlConnection.TechnologyType technologyType, String tenancyId, String region, @@ -407,7 +421,8 @@ public OracleNosqlConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.tenancyId = tenancyId; this.region = region; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnection.java index ae1ac60bd2..76a04819f1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -357,6 +366,24 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) 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(); @@ -375,6 +402,7 @@ public PostgresqlConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -389,7 +417,8 @@ public PostgresqlConnection build() { this.additionalAttributes, this.securityProtocol, this.sslMode, - this.privateIp); + this.privateIp, + this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -431,6 +460,9 @@ public Builder copy(PostgresqlConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -476,6 +508,9 @@ public Builder copy(PostgresqlConnection model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } return this; } } @@ -504,6 +539,7 @@ public PostgresqlConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -518,7 +554,8 @@ public PostgresqlConnection( java.util.List additionalAttributes, SecurityProtocol securityProtocol, SslMode sslMode, - String privateIp) { + String privateIp, + String dbSystemId) { super( id, displayName, @@ -531,6 +568,7 @@ public PostgresqlConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, @@ -546,16 +584,19 @@ public PostgresqlConnection( this.securityProtocol = securityProtocol; this.sslMode = sslMode; this.privateIp = privateIp; + this.dbSystemId = dbSystemId; } /** * The PostgreSQL technology type. **/ public enum TechnologyType { + OciPostgresql("OCI_POSTGRESQL"), PostgresqlServer("POSTGRESQL_SERVER"), AmazonAuroraPostgresql("AMAZON_AURORA_POSTGRESQL"), AmazonRdsPostgresql("AMAZON_RDS_POSTGRESQL"), AzurePostgresql("AZURE_POSTGRESQL"), + AzureCosmosDbForPostgresql("AZURE_COSMOS_DB_FOR_POSTGRESQL"), GoogleCloudSqlPostgresql("GOOGLE_CLOUD_SQL_POSTGRESQL"), /** @@ -856,6 +897,22 @@ public String getPrivateIp() { return privateIp; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + @Override public String toString() { return this.toString(true); @@ -879,6 +936,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", sslMode=").append(String.valueOf(this.sslMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); return sb.toString(); } @@ -902,6 +960,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) && java.util.Objects.equals(this.sslMode, other.sslMode) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); } @@ -926,6 +985,7 @@ public int hashCode() { + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnectionSummary.java index 01a65a1b52..8f3e6d936d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PostgresqlConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The PostgreSQL technology type. **/ @@ -357,6 +366,24 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) 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(); @@ -381,6 +408,7 @@ public PostgresqlConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.databaseName, this.host, @@ -389,7 +417,8 @@ public PostgresqlConnectionSummary build() { this.additionalAttributes, this.securityProtocol, this.sslMode, - this.privateIp); + this.privateIp, + this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -449,6 +478,9 @@ public Builder copy(PostgresqlConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -476,6 +508,9 @@ public Builder copy(PostgresqlConnectionSummary model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } return this; } } @@ -510,6 +545,7 @@ public PostgresqlConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, PostgresqlConnection.TechnologyType technologyType, String databaseName, String host, @@ -518,7 +554,8 @@ public PostgresqlConnectionSummary( java.util.List additionalAttributes, PostgresqlConnection.SecurityProtocol securityProtocol, PostgresqlConnection.SslMode sslMode, - String privateIp) { + String privateIp, + String dbSystemId) { super( id, displayName, @@ -536,7 +573,8 @@ public PostgresqlConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.databaseName = databaseName; this.host = host; @@ -546,6 +584,7 @@ public PostgresqlConnectionSummary( this.securityProtocol = securityProtocol; this.sslMode = sslMode; this.privateIp = privateIp; + this.dbSystemId = dbSystemId; } /** @@ -706,6 +745,22 @@ public String getPrivateIp() { return privateIp; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + @Override public String toString() { return this.toString(true); @@ -729,6 +784,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", sslMode=").append(String.valueOf(this.sslMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); return sb.toString(); } @@ -752,6 +808,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) && java.util.Objects.equals(this.sslMode, other.sslMode) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); } @@ -776,6 +833,7 @@ public int hashCode() { + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnection.java index 4ad73631c5..a1e8e8d289 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnection.java @@ -126,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -273,6 +282,24 @@ public Builder username(String username) { this.__explicitlySet__.add("username"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @param redisClusterId the value to set + * @return this builder + **/ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + this.__explicitlySet__.add("redisClusterId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -291,6 +318,7 @@ public RedisConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -301,7 +329,8 @@ public RedisConnection build() { this.servers, this.securityProtocol, this.authenticationType, - this.username); + this.username, + this.redisClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -343,6 +372,9 @@ public Builder copy(RedisConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -376,6 +408,9 @@ public Builder copy(RedisConnection model) { if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("redisClusterId")) { + this.redisClusterId(model.getRedisClusterId()); + } return this; } } @@ -404,6 +439,7 @@ public RedisConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -414,7 +450,8 @@ public RedisConnection( String servers, SecurityProtocol securityProtocol, AuthenticationType authenticationType, - String username) { + String username, + String redisClusterId) { super( id, displayName, @@ -427,6 +464,7 @@ public RedisConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, @@ -438,6 +476,7 @@ public RedisConnection( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.redisClusterId = redisClusterId; } /** @@ -445,6 +484,7 @@ public RedisConnection( **/ public enum TechnologyType { Redis("REDIS"), + OciCacheWithRedis("OCI_CACHE_WITH_REDIS"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -668,6 +708,22 @@ public String getUsername() { return username; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private final String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @return the value + **/ + public String getRedisClusterId() { + return redisClusterId; + } + @Override public String toString() { return this.toString(true); @@ -687,6 +743,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", redisClusterId=").append(String.valueOf(this.redisClusterId)); sb.append(")"); return sb.toString(); } @@ -706,6 +763,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) && java.util.Objects.equals(this.authenticationType, other.authenticationType) && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) && super.equals(other); } @@ -726,6 +784,9 @@ public int hashCode() { ? 43 : this.authenticationType.hashCode()); result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnectionSummary.java index 97336e8290..0ba774e527 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RedisConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Redis technology type. **/ @@ -275,6 +284,24 @@ public Builder username(String username) { this.__explicitlySet__.add("username"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @param redisClusterId the value to set + * @return this builder + **/ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + this.__explicitlySet__.add("redisClusterId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -299,11 +326,13 @@ public RedisConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.servers, this.securityProtocol, this.authenticationType, - this.username); + this.username, + this.redisClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -363,6 +392,9 @@ public Builder copy(RedisConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -378,6 +410,9 @@ public Builder copy(RedisConnectionSummary model) { if (model.wasPropertyExplicitlySet("username")) { this.username(model.getUsername()); } + if (model.wasPropertyExplicitlySet("redisClusterId")) { + this.redisClusterId(model.getRedisClusterId()); + } return this; } } @@ -412,11 +447,13 @@ public RedisConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, RedisConnection.TechnologyType technologyType, String servers, RedisConnection.SecurityProtocol securityProtocol, RedisConnection.AuthenticationType authenticationType, - String username) { + String username, + String redisClusterId) { super( id, displayName, @@ -434,12 +471,14 @@ public RedisConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.servers = servers; this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.redisClusterId = redisClusterId; } /** @@ -526,6 +565,22 @@ public String getUsername() { return username; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private final String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @return the value + **/ + public String getRedisClusterId() { + return redisClusterId; + } + @Override public String toString() { return this.toString(true); @@ -545,6 +600,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); sb.append(", authenticationType=").append(String.valueOf(this.authenticationType)); sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", redisClusterId=").append(String.valueOf(this.redisClusterId)); sb.append(")"); return sb.toString(); } @@ -564,6 +620,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) && java.util.Objects.equals(this.authenticationType, other.authenticationType) && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) && super.equals(other); } @@ -584,6 +641,9 @@ public int hashCode() { ? 43 : this.authenticationType.hashCode()); result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RemoveResourceLockDetails.java similarity index 52% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java rename to bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RemoveResourceLockDetails.java index 59030e4951..96b189ea07 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RemoveResourceLockDetails.java @@ -2,10 +2,13 @@ * 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; +package com.oracle.bmc.goldengate.model; /** - * Details about Oracle GoldenGate GGS Deployment. + * Used to remove a resource lock. + * Resource locks are used to prevent certain APIs from being called for the resource. + * A full lock prevents both updating the resource and deleting the resource. A delete + * lock prevents deleting the resource. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -15,48 +18,44 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = GoldenGateServiceDetails.Builder.class + builder = RemoveResourceLockDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class GoldenGateServiceDetails +public final class RemoveResourceLockDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"ggsDeployment", "settings"}) - public GoldenGateServiceDetails(GgsDeployment ggsDeployment, GoldenGateSettings settings) { + @java.beans.ConstructorProperties({"type"}) + public RemoveResourceLockDetails(Type type) { super(); - this.ggsDeployment = ggsDeployment; - this.settings = settings; + this.type = type; } @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"); + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public GoldenGateServiceDetails build() { - GoldenGateServiceDetails model = - new GoldenGateServiceDetails(this.ggsDeployment, this.settings); + public RemoveResourceLockDetails build() { + RemoveResourceLockDetails model = new RemoveResourceLockDetails(this.type); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,12 +63,9 @@ public GoldenGateServiceDetails build() { } @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()); + public Builder copy(RemoveResourceLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); } return this; } @@ -86,18 +82,53 @@ public Builder toBuilder() { return new Builder().copy(this); } - @com.fasterxml.jackson.annotation.JsonProperty("ggsDeployment") - private final GgsDeployment ggsDeployment; + /** + * Type of the lock. + **/ + public enum Type { + Full("FULL"), + Delete("DELETE"), + ; + + 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; + } - public GgsDeployment getGgsDeployment() { - return ggsDeployment; - } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final GoldenGateSettings settings; + @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); + } + }; + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; - public GoldenGateSettings getSettings() { - return settings; + /** + * Type of the lock. + * @return the value + **/ + public Type getType() { + return type; } @Override @@ -112,10 +143,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateServiceDetails("); + sb.append("RemoveResourceLockDetails("); sb.append("super=").append(super.toString()); - sb.append("ggsDeployment=").append(String.valueOf(this.ggsDeployment)); - sb.append(", settings=").append(String.valueOf(this.settings)); + sb.append("type=").append(String.valueOf(this.type)); sb.append(")"); return sb.toString(); } @@ -125,24 +155,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GoldenGateServiceDetails)) { + if (!(o instanceof RemoveResourceLockDetails)) { 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); + RemoveResourceLockDetails other = (RemoveResourceLockDetails) o; + return java.util.Objects.equals(this.type, other.type) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; - result = - (result * PRIME) - + (this.ggsDeployment == null ? 43 : this.ggsDeployment.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ResourceLock.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ResourceLock.java new file mode 100644 index 0000000000..b7f5990c70 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ResourceLock.java @@ -0,0 +1,310 @@ +/** + * 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.goldengate.model; + +/** + * Resource locks are used to prevent certain APIs from being called for the resource. + * A full lock prevents both updating the resource and deleting the resource. A delete + * lock prevents deleting the resource. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceLock.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ResourceLock extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "relatedResourceId", "message", "timeCreated"}) + public ResourceLock( + Type type, String relatedResourceId, String message, java.util.Date timeCreated) { + super(); + this.type = type; + this.relatedResourceId = relatedResourceId; + this.message = message; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private String relatedResourceId; + + /** + * The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + * + * @param relatedResourceId the value to set + * @return this builder + **/ + public Builder relatedResourceId(String relatedResourceId) { + this.relatedResourceId = relatedResourceId; + this.__explicitlySet__.add("relatedResourceId"); + return this; + } + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * When the lock was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * When the lock was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceLock build() { + ResourceLock model = + new ResourceLock( + this.type, this.relatedResourceId, this.message, this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceLock model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("relatedResourceId")) { + this.relatedResourceId(model.getRelatedResourceId()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of the lock. + **/ + public enum Type { + Full("FULL"), + Delete("DELETE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * Type of the lock. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * @return the value + **/ + public Type getType() { + return type; + } + + /** + * The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private final String relatedResourceId; + + /** + * The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + * + * @return the value + **/ + public String getRelatedResourceId() { + return relatedResourceId; + } + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * When the lock was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * When the lock was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceLock("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceLock)) { + return false; + } + + ResourceLock other = (ResourceLock) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnection.java index be843432fd..b2da66167c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnection.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnection.java @@ -128,6 +128,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") private String vaultId; @@ -273,6 +282,7 @@ public SnowflakeConnection build() { this.lifecycleDetails, this.timeCreated, this.timeUpdated, + this.locks, this.vaultId, this.keyId, this.ingressIps, @@ -324,6 +334,9 @@ public Builder copy(SnowflakeConnection model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -382,6 +395,7 @@ public SnowflakeConnection( String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, + java.util.List locks, String vaultId, String keyId, java.util.List ingressIps, @@ -404,6 +418,7 @@ public SnowflakeConnection( lifecycleDetails, timeCreated, timeUpdated, + locks, vaultId, keyId, ingressIps, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnectionSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnectionSummary.java index f16ecc523a..0ab6e2b735 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnectionSummary.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SnowflakeConnectionSummary.java @@ -181,6 +181,15 @@ public Builder routingMethod(RoutingMethod routingMethod) { this.__explicitlySet__.add("routingMethod"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } /** * The Snowflake technology type. **/ @@ -280,6 +289,7 @@ public SnowflakeConnectionSummary build() { this.nsgIds, this.subnetId, this.routingMethod, + this.locks, this.technologyType, this.connectionUrl, this.authenticationType, @@ -343,6 +353,9 @@ public Builder copy(SnowflakeConnectionSummary model) { if (model.wasPropertyExplicitlySet("routingMethod")) { this.routingMethod(model.getRoutingMethod()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } if (model.wasPropertyExplicitlySet("technologyType")) { this.technologyType(model.getTechnologyType()); } @@ -389,6 +402,7 @@ public SnowflakeConnectionSummary( java.util.List nsgIds, String subnetId, RoutingMethod routingMethod, + java.util.List locks, SnowflakeConnection.TechnologyType technologyType, String connectionUrl, SnowflakeConnection.AuthenticationType authenticationType, @@ -410,7 +424,8 @@ public SnowflakeConnectionSummary( ingressIps, nsgIds, subnetId, - routingMethod); + routingMethod, + locks); this.technologyType = technologyType; this.connectionUrl = connectionUrl; this.authenticationType = authenticationType; diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java index ba719d730f..821fee3f3d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java @@ -14,11 +14,14 @@ public enum TechnologyType { Generic("GENERIC"), OciAutonomousDatabase("OCI_AUTONOMOUS_DATABASE"), OciAutonomousJsonDatabase("OCI_AUTONOMOUS_JSON_DATABASE"), + OciCacheWithRedis("OCI_CACHE_WITH_REDIS"), OciMysql("OCI_MYSQL"), OciObjectStorage("OCI_OBJECT_STORAGE"), + OciPostgresql("OCI_POSTGRESQL"), OciStreaming("OCI_STREAMING"), OracleDatabase("ORACLE_DATABASE"), OracleExadata("ORACLE_EXADATA"), + OracleExadataDatabaseAtAzure("ORACLE_EXADATA_DATABASE_AT_AZURE"), OracleNosql("ORACLE_NOSQL"), OracleWeblogicJms("ORACLE_WEBLOGIC_JMS"), AmazonRdsOracle("AMAZON_RDS_ORACLE"), @@ -33,6 +36,7 @@ public enum TechnologyType { AmazonRdsPostgresql("AMAZON_RDS_POSTGRESQL"), ApacheKafka("APACHE_KAFKA"), AzureCosmosDbForMongodb("AZURE_COSMOS_DB_FOR_MONGODB"), + AzureCosmosDbForPostgresql("AZURE_COSMOS_DB_FOR_POSTGRESQL"), AzureDataLakeStorage("AZURE_DATA_LAKE_STORAGE"), AzureEventHubs("AZURE_EVENT_HUBS"), AzureMysql("AZURE_MYSQL"), @@ -42,6 +46,7 @@ public enum TechnologyType { AzureSynapseAnalytics("AZURE_SYNAPSE_ANALYTICS"), ConfluentKafka("CONFLUENT_KAFKA"), ConfluentSchemaRegistry("CONFLUENT_SCHEMA_REGISTRY"), + Db2Zos("DB2_ZOS"), Elasticsearch("ELASTICSEARCH"), GoogleBigquery("GOOGLE_BIGQUERY"), GoogleCloudStorage("GOOGLE_CLOUD_STORAGE"), @@ -53,6 +58,8 @@ public enum TechnologyType { MicrosoftSqlserver("MICROSOFT_SQLSERVER"), Mongodb("MONGODB"), MysqlServer("MYSQL_SERVER"), + MysqlHeatwaveOnAzure("MYSQL_HEATWAVE_ON_AZURE"), + MysqlHeatwaveOnAws("MYSQL_HEATWAVE_ON_AWS"), PostgresqlServer("POSTGRESQL_SERVER"), Redis("REDIS"), Singlestoredb("SINGLESTOREDB"), diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java index 0dc08fff2e..1c076f7ede 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateConnectionDetails.java @@ -107,6 +107,10 @@ value = UpdateKafkaConnectionDetails.class, name = "KAFKA" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDb2ConnectionDetails.class, + name = "DB2" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateGenericConnectionDetails.class, name = "GENERIC" diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java new file mode 100644 index 0000000000..8197c9c628 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java @@ -0,0 +1,688 @@ +/** + * 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.goldengate.model; + +/** + * The information to update a DB2 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDb2ConnectionDetails.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.internal.ExplicitlySetFilter.NAME) +public final class UpdateDb2ConnectionDetails 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("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("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + private RoutingMethod routingMethod; + + public Builder routingMethod(RoutingMethod routingMethod) { + this.routingMethod = routingMethod; + this.__explicitlySet__.add("routingMethod"); + return this; + } + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database. + * + * @param databaseName the value to set + * @return this builder + **/ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The name or address of a 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 of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port of an endpoint usually specified for a 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 username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @param username the value to set + * @return this builder + **/ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + * @param password the value to set + * @return this builder + **/ + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @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; + } + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @param securityProtocol the value to set + * @return this builder + **/ + public Builder securityProtocol(Db2Connection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + private String sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + * @param sslClientKeystoredb the value to set + * @return this builder + **/ + public Builder sslClientKeystoredb(String sslClientKeystoredb) { + this.sslClientKeystoredb = sslClientKeystoredb; + this.__explicitlySet__.add("sslClientKeystoredb"); + return this; + } + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + private String sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + * @param sslClientKeystash the value to set + * @return this builder + **/ + public Builder sslClientKeystash(String sslClientKeystash) { + this.sslClientKeystash = sslClientKeystash; + this.__explicitlySet__.add("sslClientKeystash"); + return this; + } + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + private String sslServerCertificate; + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + * @param sslServerCertificate the value to set + * @return this builder + **/ + public Builder sslServerCertificate(String sslServerCertificate) { + this.sslServerCertificate = sslServerCertificate; + this.__explicitlySet__.add("sslServerCertificate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDb2ConnectionDetails build() { + UpdateDb2ConnectionDetails model = + new UpdateDb2ConnectionDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.nsgIds, + this.subnetId, + this.routingMethod, + this.databaseName, + this.host, + this.port, + this.username, + this.password, + this.additionalAttributes, + this.securityProtocol, + this.sslClientKeystoredb, + this.sslClientKeystash, + this.sslServerCertificate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDb2ConnectionDetails 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("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("routingMethod")) { + this.routingMethod(model.getRoutingMethod()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslClientKeystoredb")) { + this.sslClientKeystoredb(model.getSslClientKeystoredb()); + } + if (model.wasPropertyExplicitlySet("sslClientKeystash")) { + this.sslClientKeystash(model.getSslClientKeystash()); + } + if (model.wasPropertyExplicitlySet("sslServerCertificate")) { + this.sslServerCertificate(model.getSslServerCertificate()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDb2ConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + java.util.List nsgIds, + String subnetId, + RoutingMethod routingMethod, + String databaseName, + String host, + Integer port, + String username, + String password, + java.util.List additionalAttributes, + Db2Connection.SecurityProtocol securityProtocol, + String sslClientKeystoredb, + String sslClientKeystash, + String sslServerCertificate) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; + this.password = password; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystash = sslClientKeystash; + this.sslServerCertificate = sslServerCertificate; + } + + /** + * The name of the database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database. + * + * @return the value + **/ + public String getDatabaseName() { + return databaseName; + } + + /** + * The name or address of a host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The name or address of a host. + * + * @return the value + **/ + public String getHost() { + return host; + } + + /** + * The port of an endpoint usually specified for a connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port of an endpoint usually specified for a connection. + * + * @return the value + **/ + public Integer getPort() { + return port; + } + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The username Oracle GoldenGate uses to connect to the DB2 database. + * This username must already exist and be available by the DB2 to be connected to. + * + * @return the value + **/ + public String getUsername() { + return username; + } + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. + * + * @return the value + **/ + public String getPassword() { + return password; + } + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * Used as additional parameters in connection string. + * + * @return the value + **/ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Security protocol for the DB2 database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final Db2Connection.SecurityProtocol securityProtocol; + + /** + * Security protocol for the DB2 database. + * @return the value + **/ + public Db2Connection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + private final String sslClientKeystoredb; + + /** + * The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + * + * @return the value + **/ + public String getSslClientKeystoredb() { + return sslClientKeystoredb; + } + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + private final String sslClientKeystash; + + /** + * The base64 encoded keystash file which contains the encrypted password to the key database file. + * + * @return the value + **/ + public String getSslClientKeystash() { + return sslClientKeystash; + } + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + private final String sslServerCertificate; + + /** + * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. + * + * @return the value + **/ + public String getSslServerCertificate() { + return sslServerCertificate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDb2ConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", password=").append(""); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslClientKeystoredb=").append(String.valueOf(this.sslClientKeystoredb)); + sb.append(", sslClientKeystash=").append(String.valueOf(this.sslClientKeystash)); + sb.append(", sslServerCertificate=").append(String.valueOf(this.sslServerCertificate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDb2ConnectionDetails)) { + return false; + } + + UpdateDb2ConnectionDetails other = (UpdateDb2ConnectionDetails) o; + return java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslClientKeystoredb, other.sslClientKeystoredb) + && java.util.Objects.equals(this.sslClientKeystash, other.sslClientKeystash) + && java.util.Objects.equals(this.sslServerCertificate, other.sslServerCertificate) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.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.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = + (result * PRIME) + + (this.sslClientKeystoredb == null + ? 43 + : this.sslClientKeystoredb.hashCode()); + result = + (result * PRIME) + + (this.sslClientKeystash == null ? 43 : this.sslClientKeystash.hashCode()); + result = + (result * PRIME) + + (this.sslServerCertificate == null + ? 43 + : this.sslServerCertificate.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDeploymentDetails.java index 044f0a890b..7d3600c484 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDeploymentDetails.java @@ -31,6 +31,7 @@ public final class UpdateDeploymentDetails "definedTags", "nsgIds", "subnetId", + "loadBalancerSubnetId", "isPublic", "fqdn", "cpuCoreCount", @@ -47,6 +48,7 @@ public UpdateDeploymentDetails( java.util.Map> definedTags, java.util.List nsgIds, String subnetId, + String loadBalancerSubnetId, Boolean isPublic, String fqdn, Integer cpuCoreCount, @@ -62,6 +64,7 @@ public UpdateDeploymentDetails( this.definedTags = definedTags; this.nsgIds = nsgIds; this.subnetId = subnetId; + this.loadBalancerSubnetId = loadBalancerSubnetId; this.isPublic = isPublic; this.fqdn = fqdn; this.cpuCoreCount = cpuCoreCount; @@ -194,6 +197,8 @@ public Builder nsgIds(java.util.List nsgIds) { } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -201,6 +206,8 @@ public Builder nsgIds(java.util.List nsgIds) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @param subnetId the value to set * @return this builder @@ -210,6 +217,28 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. + * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") + private String loadBalancerSubnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. + * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. + * + * @param loadBalancerSubnetId the value to set + * @return this builder + **/ + public Builder loadBalancerSubnetId(String loadBalancerSubnetId) { + this.loadBalancerSubnetId = loadBalancerSubnetId; + this.__explicitlySet__.add("loadBalancerSubnetId"); + return this; + } /** * True if this object is publicly available. * @@ -324,6 +353,7 @@ public UpdateDeploymentDetails build() { this.definedTags, this.nsgIds, this.subnetId, + this.loadBalancerSubnetId, this.isPublic, this.fqdn, this.cpuCoreCount, @@ -360,6 +390,9 @@ public Builder copy(UpdateDeploymentDetails model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("loadBalancerSubnetId")) { + this.loadBalancerSubnetId(model.getLoadBalancerSubnetId()); + } if (model.wasPropertyExplicitlySet("isPublic")) { this.isPublic(model.getIsPublic()); } @@ -504,6 +537,8 @@ public java.util.List getNsgIds() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * **/ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") @@ -511,6 +546,8 @@ public java.util.List getNsgIds() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet of the deployment's private endpoint. + * The subnet must be a private subnet. For backward compatibility, public subnets are allowed until May 31 2025, + * after which the private subnet will be enforced. * * @return the value **/ @@ -518,6 +555,26 @@ public String getSubnetId() { return subnetId; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. + * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("loadBalancerSubnetId") + private final String loadBalancerSubnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a public subnet in the customer tenancy. + * Can be provided only for public deployments. If provided, the loadbalancer will be created in this subnet instead of the service tenancy. + * For backward compatibility, this is an optional property. It will become mandatory for public deployments after October 1, 2024. + * + * @return the value + **/ + public String getLoadBalancerSubnetId() { + return loadBalancerSubnetId; + } + /** * True if this object is publicly available. * @@ -624,6 +681,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", loadBalancerSubnetId=").append(String.valueOf(this.loadBalancerSubnetId)); sb.append(", isPublic=").append(String.valueOf(this.isPublic)); sb.append(", fqdn=").append(String.valueOf(this.fqdn)); sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); @@ -653,6 +711,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.loadBalancerSubnetId, other.loadBalancerSubnetId) && java.util.Objects.equals(this.isPublic, other.isPublic) && java.util.Objects.equals(this.fqdn, other.fqdn) && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) @@ -675,6 +734,11 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.loadBalancerSubnetId == null + ? 43 + : this.loadBalancerSubnetId.hashCode()); result = (result * PRIME) + (this.isPublic == null ? 43 : this.isPublic.hashCode()); result = (result * PRIME) + (this.fqdn == null ? 43 : this.fqdn.hashCode()); result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java index 53319baf09..7d4f478cc6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java @@ -149,14 +149,14 @@ public Builder adminPassword(String adminPassword) { return this; } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @param certificate the value to set * @return this builder @@ -167,14 +167,14 @@ public Builder certificate(String certificate) { return this; } /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * * @param key the value to set * @return this builder @@ -329,14 +329,14 @@ public String getAdminPassword() { } /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * **/ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private final String certificate; /** - * A PEM-encoded SSL certificate. + * The base64 encoded content of the PEM file containing the SSL certificate. * * @return the value **/ @@ -345,14 +345,14 @@ public String getCertificate() { } /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * **/ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * A PEM-encoded private key. + * The base64 encoded content of the PEM file containing the private key. * * @return the value **/ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java index 0882a1e899..00cc2cf301 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java @@ -169,6 +169,26 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("connectionString"); return this; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @param authenticationMode the value to set + * @return this builder + **/ + public Builder authenticationMode(OracleConnection.AuthenticationMode authenticationMode) { + this.authenticationMode = authenticationMode; + this.__explicitlySet__.add("authenticationMode"); + return this; + } /** * The wallet contents Oracle GoldenGate uses to make connections to a database. This * attribute is expected to be base64 encoded. @@ -282,6 +302,7 @@ public UpdateOracleConnectionDetails build() { this.username, this.password, this.connectionString, + this.authenticationMode, this.wallet, this.sessionMode, this.privateIp, @@ -330,6 +351,9 @@ public Builder copy(UpdateOracleConnectionDetails model) { if (model.wasPropertyExplicitlySet("connectionString")) { this.connectionString(model.getConnectionString()); } + if (model.wasPropertyExplicitlySet("authenticationMode")) { + this.authenticationMode(model.getAuthenticationMode()); + } if (model.wasPropertyExplicitlySet("wallet")) { this.wallet(model.getWallet()); } @@ -371,6 +395,7 @@ public UpdateOracleConnectionDetails( String username, String password, String connectionString, + OracleConnection.AuthenticationMode authenticationMode, String wallet, OracleConnection.SessionMode sessionMode, String privateIp, @@ -388,6 +413,7 @@ public UpdateOracleConnectionDetails( this.username = username; this.password = password; this.connectionString = connectionString; + this.authenticationMode = authenticationMode; this.wallet = wallet; this.sessionMode = sessionMode; this.privateIp = privateIp; @@ -448,6 +474,24 @@ public String getConnectionString() { return connectionString; } + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + private final OracleConnection.AuthenticationMode authenticationMode; + + /** + * Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, + * when a databaseId is provided. The default value is MTLS. + * + * @return the value + **/ + public OracleConnection.AuthenticationMode getAuthenticationMode() { + return authenticationMode; + } + /** * The wallet contents Oracle GoldenGate uses to make connections to a database. This * attribute is expected to be base64 encoded. @@ -551,6 +595,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", username=").append(String.valueOf(this.username)); sb.append(", password=").append(""); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", authenticationMode=").append(String.valueOf(this.authenticationMode)); sb.append(", wallet=").append(String.valueOf(this.wallet)); sb.append(", sessionMode=").append(String.valueOf(this.sessionMode)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); @@ -572,6 +617,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.username, other.username) && java.util.Objects.equals(this.password, other.password) && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.authenticationMode, other.authenticationMode) && java.util.Objects.equals(this.wallet, other.wallet) && java.util.Objects.equals(this.sessionMode, other.sessionMode) && java.util.Objects.equals(this.privateIp, other.privateIp) @@ -588,6 +634,11 @@ public int hashCode() { result = (result * PRIME) + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = + (result * PRIME) + + (this.authenticationMode == null + ? 43 + : this.authenticationMode.hashCode()); result = (result * PRIME) + (this.wallet == null ? 43 : this.wallet.hashCode()); result = (result * PRIME) + (this.sessionMode == null ? 43 : this.sessionMode.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java index d0bb614714..801ba09930 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java @@ -363,6 +363,24 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) 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(); @@ -391,7 +409,8 @@ public UpdatePostgresqlConnectionDetails build() { this.sslCrl, this.sslCert, this.sslKey, - this.privateIp); + this.privateIp, + this.dbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -466,6 +485,9 @@ public Builder copy(UpdatePostgresqlConnectionDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } return this; } } @@ -504,7 +526,8 @@ public UpdatePostgresqlConnectionDetails( String sslCrl, String sslCert, String sslKey, - String privateIp) { + String privateIp, + String dbSystemId) { super( displayName, description, @@ -528,6 +551,7 @@ public UpdatePostgresqlConnectionDetails( this.sslCert = sslCert; this.sslKey = sslKey; this.privateIp = privateIp; + this.dbSystemId = dbSystemId; } /** @@ -758,6 +782,22 @@ public String getPrivateIp() { return privateIp; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database system being referenced. + * + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + @Override public String toString() { return this.toString(true); @@ -785,6 +825,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sslCert=").append(String.valueOf(this.sslCert)); sb.append(", sslKey=").append(String.valueOf(this.sslKey)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); sb.append(")"); return sb.toString(); } @@ -812,6 +853,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sslCert, other.sslCert) && java.util.Objects.equals(this.sslKey, other.sslKey) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) && super.equals(other); } @@ -838,6 +880,7 @@ public int 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.privateIp == null ? 43 : this.privateIp.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java index 79b40de90a..15a45acb7d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java @@ -279,6 +279,24 @@ public Builder keyStorePassword(String keyStorePassword) { this.__explicitlySet__.add("keyStorePassword"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @param redisClusterId the value to set + * @return this builder + **/ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + this.__explicitlySet__.add("redisClusterId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -303,7 +321,8 @@ public UpdateRedisConnectionDetails build() { this.trustStore, this.trustStorePassword, this.keyStore, - this.keyStorePassword); + this.keyStorePassword, + this.redisClusterId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -366,6 +385,9 @@ public Builder copy(UpdateRedisConnectionDetails model) { if (model.wasPropertyExplicitlySet("keyStorePassword")) { this.keyStorePassword(model.getKeyStorePassword()); } + if (model.wasPropertyExplicitlySet("redisClusterId")) { + this.redisClusterId(model.getRedisClusterId()); + } return this; } } @@ -400,7 +422,8 @@ public UpdateRedisConnectionDetails( String trustStore, String trustStorePassword, String keyStore, - String keyStorePassword) { + String keyStorePassword, + String redisClusterId) { super( displayName, description, @@ -420,6 +443,7 @@ public UpdateRedisConnectionDetails( this.trustStorePassword = trustStorePassword; this.keyStore = keyStore; this.keyStorePassword = keyStorePassword; + this.redisClusterId = redisClusterId; } /** @@ -574,6 +598,22 @@ public String getKeyStorePassword() { return keyStorePassword; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private final String redisClusterId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Redis cluster. + * + * @return the value + **/ + public String getRedisClusterId() { + return redisClusterId; + } + @Override public String toString() { return this.toString(true); @@ -597,6 +637,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", trustStorePassword=").append(""); sb.append(", keyStore=").append(String.valueOf(this.keyStore)); sb.append(", keyStorePassword=").append(""); + sb.append(", redisClusterId=").append(String.valueOf(this.redisClusterId)); sb.append(")"); return sb.toString(); } @@ -620,6 +661,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.trustStorePassword, other.trustStorePassword) && java.util.Objects.equals(this.keyStore, other.keyStore) && java.util.Objects.equals(this.keyStorePassword, other.keyStorePassword) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) && super.equals(other); } @@ -648,6 +690,9 @@ public int hashCode() { result = (result * PRIME) + (this.keyStorePassword == null ? 43 : this.keyStorePassword.hashCode()); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddConnectionLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddConnectionLockRequest.java new file mode 100644 index 0000000000..c694419652 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddConnectionLockRequest.java @@ -0,0 +1,314 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use AddConnectionLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddConnectionLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + public String getConnectionId() { + return connectionId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.AddResourceLockDetails getAddResourceLockDetails() { + return addResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddConnectionLockRequest, + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + * @param connectionId the value to set + * @return this builder instance + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails) { + this.addResourceLockDetails = addResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddConnectionLockRequest o) { + connectionId(o.getConnectionId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddConnectionLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of AddConnectionLockRequest + */ + public AddConnectionLockRequest build() { + AddConnectionLockRequest 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.goldengate.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddConnectionLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AddConnectionLockRequest + */ + public AddConnectionLockRequest buildWithoutInvocationCallback() { + AddConnectionLockRequest request = new AddConnectionLockRequest(); + request.connectionId = connectionId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddConnectionLockRequest(connectionId, addResourceLockDetails, 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() + .connectionId(connectionId) + .addResourceLockDetails(addResourceLockDetails) + .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(",connectionId=").append(String.valueOf(this.connectionId)); + sb.append(",addResourceLockDetails=").append(String.valueOf(this.addResourceLockDetails)); + 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 AddConnectionLockRequest)) { + return false; + } + + AddConnectionLockRequest other = (AddConnectionLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals( + this.addResourceLockDetails, other.addResourceLockDetails) + && 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.connectionId == null ? 43 : this.connectionId.hashCode()); + result = + (result * PRIME) + + (this.addResourceLockDetails == null + ? 43 + : this.addResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentBackupLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentBackupLockRequest.java new file mode 100644 index 0000000000..0455eff70c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentBackupLockRequest.java @@ -0,0 +1,318 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use AddDeploymentBackupLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentBackupLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + + /** + * A unique DeploymentBackup identifier. + * + */ + private String deploymentBackupId; + + /** + * A unique DeploymentBackup identifier. + * + */ + public String getDeploymentBackupId() { + return deploymentBackupId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.AddResourceLockDetails getAddResourceLockDetails() { + return addResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDeploymentBackupLockRequest, + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique DeploymentBackup identifier. + * + */ + private String deploymentBackupId = null; + + /** + * A unique DeploymentBackup identifier. + * + * @param deploymentBackupId the value to set + * @return this builder instance + */ + public Builder deploymentBackupId(String deploymentBackupId) { + this.deploymentBackupId = deploymentBackupId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails) { + this.addResourceLockDetails = addResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDeploymentBackupLockRequest o) { + deploymentBackupId(o.getDeploymentBackupId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDeploymentBackupLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of AddDeploymentBackupLockRequest + */ + public AddDeploymentBackupLockRequest build() { + AddDeploymentBackupLockRequest 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.goldengate.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDeploymentBackupLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AddDeploymentBackupLockRequest + */ + public AddDeploymentBackupLockRequest buildWithoutInvocationCallback() { + AddDeploymentBackupLockRequest request = new AddDeploymentBackupLockRequest(); + request.deploymentBackupId = deploymentBackupId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDeploymentBackupLockRequest(deploymentBackupId, addResourceLockDetails, 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() + .deploymentBackupId(deploymentBackupId) + .addResourceLockDetails(addResourceLockDetails) + .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(",deploymentBackupId=").append(String.valueOf(this.deploymentBackupId)); + sb.append(",addResourceLockDetails=").append(String.valueOf(this.addResourceLockDetails)); + 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 AddDeploymentBackupLockRequest)) { + return false; + } + + AddDeploymentBackupLockRequest other = (AddDeploymentBackupLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentBackupId, other.deploymentBackupId) + && java.util.Objects.equals( + this.addResourceLockDetails, other.addResourceLockDetails) + && 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.deploymentBackupId == null + ? 43 + : this.deploymentBackupId.hashCode()); + result = + (result * PRIME) + + (this.addResourceLockDetails == null + ? 43 + : this.addResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentLockRequest.java new file mode 100644 index 0000000000..488cabae76 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/AddDeploymentLockRequest.java @@ -0,0 +1,314 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use AddDeploymentLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId; + + /** + * A unique Deployment identifier. + * + */ + public String getDeploymentId() { + return deploymentId; + } + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails; + + /** + * AddResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.AddResourceLockDetails getAddResourceLockDetails() { + return addResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.AddResourceLockDetails getBody$() { + return addResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddDeploymentLockRequest, + com.oracle.bmc.goldengate.model.AddResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId = null; + + /** + * A unique Deployment identifier. + * + * @param deploymentId the value to set + * @return this builder instance + */ + public Builder deploymentId(String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + /** + * AddResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails = + null; + + /** + * AddResourceLockDetails body parameter + * @param addResourceLockDetails the value to set + * @return this builder instance + */ + public Builder addResourceLockDetails( + com.oracle.bmc.goldengate.model.AddResourceLockDetails addResourceLockDetails) { + this.addResourceLockDetails = addResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDeploymentLockRequest o) { + deploymentId(o.getDeploymentId()); + addResourceLockDetails(o.getAddResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddDeploymentLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of AddDeploymentLockRequest + */ + public AddDeploymentLockRequest build() { + AddDeploymentLockRequest 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.goldengate.model.AddResourceLockDetails body) { + addResourceLockDetails(body); + return this; + } + + /** + * Build the instance of AddDeploymentLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AddDeploymentLockRequest + */ + public AddDeploymentLockRequest buildWithoutInvocationCallback() { + AddDeploymentLockRequest request = new AddDeploymentLockRequest(); + request.deploymentId = deploymentId; + request.addResourceLockDetails = addResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new AddDeploymentLockRequest(deploymentId, addResourceLockDetails, 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() + .deploymentId(deploymentId) + .addResourceLockDetails(addResourceLockDetails) + .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(",deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(",addResourceLockDetails=").append(String.valueOf(this.addResourceLockDetails)); + 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 AddDeploymentLockRequest)) { + return false; + } + + AddDeploymentLockRequest other = (AddDeploymentLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals( + this.addResourceLockDetails, other.addResourceLockDetails) + && 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.deploymentId == null ? 43 : this.deploymentId.hashCode()); + result = + (result * PRIME) + + (this.addResourceLockDetails == null + ? 43 + : this.addResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CancelDeploymentBackupRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CancelDeploymentBackupRequest.java index 11e752c158..f20739a2f2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CancelDeploymentBackupRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CancelDeploymentBackupRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -211,6 +222,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -244,6 +270,7 @@ public Builder copy(CancelDeploymentBackupRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -292,8 +319,9 @@ public CancelDeploymentBackupRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new CancelDeploymentBackupRequest(deploymentBackupId, cancelDeploymentBackupDetails, ifMatch, opcRequestId, opcRetryToken); + // new CancelDeploymentBackupRequest(deploymentBackupId, cancelDeploymentBackupDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -307,7 +335,8 @@ public Builder toBuilder() { .cancelDeploymentBackupDetails(cancelDeploymentBackupDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -329,6 +358,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -349,7 +379,8 @@ public boolean equals(Object o) { this.cancelDeploymentBackupDetails, other.cancelDeploymentBackupDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -371,6 +402,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeConnectionCompartmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeConnectionCompartmentRequest.java index 7ff8833f27..158806c7c5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeConnectionCompartmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeConnectionCompartmentRequest.java @@ -73,6 +73,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -169,6 +180,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -201,6 +227,7 @@ public Builder copy(ChangeConnectionCompartmentRequest o) { changeConnectionCompartmentDetails(o.getChangeConnectionCompartmentDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -249,8 +276,9 @@ public ChangeConnectionCompartmentRequest buildWithoutInvocationCallback() { request.changeConnectionCompartmentDetails = changeConnectionCompartmentDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new ChangeConnectionCompartmentRequest(connectionId, changeConnectionCompartmentDetails, ifMatch, opcRequestId); + // new ChangeConnectionCompartmentRequest(connectionId, changeConnectionCompartmentDetails, ifMatch, opcRequestId, isLockOverride); } } @@ -263,7 +291,8 @@ public Builder toBuilder() { .connectionId(connectionId) .changeConnectionCompartmentDetails(changeConnectionCompartmentDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -284,6 +313,7 @@ public String toString() { .append(String.valueOf(this.changeConnectionCompartmentDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -304,7 +334,8 @@ public boolean equals(Object o) { this.changeConnectionCompartmentDetails, other.changeConnectionCompartmentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -319,6 +350,9 @@ public int hashCode() { : this.changeConnectionCompartmentDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentBackupCompartmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentBackupCompartmentRequest.java index 801296c274..151a20c301 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentBackupCompartmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentBackupCompartmentRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -212,6 +223,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -246,6 +272,7 @@ public Builder copy(ChangeDeploymentBackupCompartmentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -297,8 +324,9 @@ public ChangeDeploymentBackupCompartmentRequest buildWithoutInvocationCallback() request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new ChangeDeploymentBackupCompartmentRequest(deploymentBackupId, changeDeploymentBackupCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); + // new ChangeDeploymentBackupCompartmentRequest(deploymentBackupId, changeDeploymentBackupCompartmentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -312,7 +340,8 @@ public Builder toBuilder() { .changeDeploymentBackupCompartmentDetails(changeDeploymentBackupCompartmentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -334,6 +363,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -356,7 +386,8 @@ public boolean equals(Object o) { other.changeDeploymentBackupCompartmentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -378,6 +409,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentCompartmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentCompartmentRequest.java index abef75c88a..161d0c76fa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentCompartmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangeDeploymentCompartmentRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -211,6 +222,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -244,6 +270,7 @@ public Builder copy(ChangeDeploymentCompartmentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -293,8 +320,9 @@ public ChangeDeploymentCompartmentRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new ChangeDeploymentCompartmentRequest(deploymentId, changeDeploymentCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); + // new ChangeDeploymentCompartmentRequest(deploymentId, changeDeploymentCompartmentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -308,7 +336,8 @@ public Builder toBuilder() { .changeDeploymentCompartmentDetails(changeDeploymentCompartmentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -330,6 +359,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -351,7 +381,8 @@ public boolean equals(Object o) { other.changeDeploymentCompartmentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -369,6 +400,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateCertificateRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateCertificateRequest.java index e6555b880d..7802113ce0 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateCertificateRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateCertificateRequest.java @@ -71,6 +71,17 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -166,6 +177,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -198,6 +224,7 @@ public Builder copy(CreateCertificateRequest o) { deploymentId(o.getDeploymentId()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -245,8 +272,9 @@ public CreateCertificateRequest buildWithoutInvocationCallback() { request.deploymentId = deploymentId; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new CreateCertificateRequest(createCertificateDetails, deploymentId, opcRetryToken, opcRequestId); + // new CreateCertificateRequest(createCertificateDetails, deploymentId, opcRetryToken, opcRequestId, isLockOverride); } } @@ -259,7 +287,8 @@ public Builder toBuilder() { .createCertificateDetails(createCertificateDetails) .deploymentId(deploymentId) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -280,6 +309,7 @@ public String toString() { sb.append(",deploymentId=").append(String.valueOf(this.deploymentId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -299,7 +329,8 @@ public boolean equals(Object o) { this.createCertificateDetails, other.createCertificateDetails) && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -316,6 +347,9 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateConnectionAssignmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateConnectionAssignmentRequest.java index 4bc74b4d0f..84fdc5676d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateConnectionAssignmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreateConnectionAssignmentRequest.java @@ -58,6 +58,17 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -135,6 +146,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -166,6 +192,7 @@ public Builder copy(CreateConnectionAssignmentRequest o) { createConnectionAssignmentDetails(o.getCreateConnectionAssignmentDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -213,8 +240,9 @@ public CreateConnectionAssignmentRequest buildWithoutInvocationCallback() { request.createConnectionAssignmentDetails = createConnectionAssignmentDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new CreateConnectionAssignmentRequest(createConnectionAssignmentDetails, opcRetryToken, opcRequestId); + // new CreateConnectionAssignmentRequest(createConnectionAssignmentDetails, opcRetryToken, opcRequestId, isLockOverride); } } @@ -226,7 +254,8 @@ public Builder toBuilder() { return new Builder() .createConnectionAssignmentDetails(createConnectionAssignmentDetails) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -246,6 +275,7 @@ public String toString() { .append(String.valueOf(this.createConnectionAssignmentDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -265,7 +295,8 @@ public boolean equals(Object o) { this.createConnectionAssignmentDetails, other.createConnectionAssignmentDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -281,6 +312,9 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteCertificateRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteCertificateRequest.java index 2637f70aa1..cc2c973eb4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteCertificateRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteCertificateRequest.java @@ -69,6 +69,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -151,6 +162,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -183,6 +209,7 @@ public Builder copy(DeleteCertificateRequest o) { certificateKey(o.getCertificateKey()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -219,8 +246,9 @@ public DeleteCertificateRequest buildWithoutInvocationCallback() { request.certificateKey = certificateKey; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteCertificateRequest(deploymentId, certificateKey, ifMatch, opcRequestId); + // new DeleteCertificateRequest(deploymentId, certificateKey, ifMatch, opcRequestId, isLockOverride); } } @@ -233,7 +261,8 @@ public Builder toBuilder() { .deploymentId(deploymentId) .certificateKey(certificateKey) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -253,6 +282,7 @@ public String toString() { sb.append(",certificateKey=").append(String.valueOf(this.certificateKey)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -271,7 +301,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.certificateKey, other.certificateKey) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -284,6 +315,9 @@ public int hashCode() { + (this.certificateKey == null ? 43 : this.certificateKey.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionAssignmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionAssignmentRequest.java index 41c79824f6..a4be2f7b8b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionAssignmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionAssignmentRequest.java @@ -57,6 +57,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -122,6 +133,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -153,6 +179,7 @@ public Builder copy(DeleteConnectionAssignmentRequest o) { connectionAssignmentId(o.getConnectionAssignmentId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -188,8 +215,9 @@ public DeleteConnectionAssignmentRequest buildWithoutInvocationCallback() { request.connectionAssignmentId = connectionAssignmentId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteConnectionAssignmentRequest(connectionAssignmentId, ifMatch, opcRequestId); + // new DeleteConnectionAssignmentRequest(connectionAssignmentId, ifMatch, opcRequestId, isLockOverride); } } @@ -201,7 +229,8 @@ public Builder toBuilder() { return new Builder() .connectionAssignmentId(connectionAssignmentId) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -220,6 +249,7 @@ public String toString() { sb.append(",connectionAssignmentId=").append(String.valueOf(this.connectionAssignmentId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -238,7 +268,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.connectionAssignmentId, other.connectionAssignmentId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -252,6 +283,9 @@ public int hashCode() { : this.connectionAssignmentId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionRequest.java index 5d3ac8e25b..e88846f9eb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteConnectionRequest.java @@ -56,6 +56,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -121,6 +132,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -152,6 +178,7 @@ public Builder copy(DeleteConnectionRequest o) { connectionId(o.getConnectionId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -187,8 +214,9 @@ public DeleteConnectionRequest buildWithoutInvocationCallback() { request.connectionId = connectionId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteConnectionRequest(connectionId, ifMatch, opcRequestId); + // new DeleteConnectionRequest(connectionId, ifMatch, opcRequestId, isLockOverride); } } @@ -197,7 +225,11 @@ public DeleteConnectionRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().connectionId(connectionId).ifMatch(ifMatch).opcRequestId(opcRequestId); + return new Builder() + .connectionId(connectionId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -216,6 +248,7 @@ public String toString() { sb.append(",connectionId=").append(String.valueOf(this.connectionId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -233,7 +266,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.connectionId, other.connectionId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -243,6 +277,9 @@ public int hashCode() { result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentBackupRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentBackupRequest.java index b06264cee6..5178389b9e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentBackupRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentBackupRequest.java @@ -57,6 +57,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -122,6 +133,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -153,6 +179,7 @@ public Builder copy(DeleteDeploymentBackupRequest o) { deploymentBackupId(o.getDeploymentBackupId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -188,8 +215,9 @@ public DeleteDeploymentBackupRequest buildWithoutInvocationCallback() { request.deploymentBackupId = deploymentBackupId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteDeploymentBackupRequest(deploymentBackupId, ifMatch, opcRequestId); + // new DeleteDeploymentBackupRequest(deploymentBackupId, ifMatch, opcRequestId, isLockOverride); } } @@ -201,7 +229,8 @@ public Builder toBuilder() { return new Builder() .deploymentBackupId(deploymentBackupId) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -220,6 +249,7 @@ public String toString() { sb.append(",deploymentBackupId=").append(String.valueOf(this.deploymentBackupId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -237,7 +267,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.deploymentBackupId, other.deploymentBackupId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -251,6 +282,9 @@ public int hashCode() { : this.deploymentBackupId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentRequest.java index c944744c7c..451dfa7bdb 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeleteDeploymentRequest.java @@ -56,6 +56,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -121,6 +132,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -152,6 +178,7 @@ public Builder copy(DeleteDeploymentRequest o) { deploymentId(o.getDeploymentId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -187,8 +214,9 @@ public DeleteDeploymentRequest buildWithoutInvocationCallback() { request.deploymentId = deploymentId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteDeploymentRequest(deploymentId, ifMatch, opcRequestId); + // new DeleteDeploymentRequest(deploymentId, ifMatch, opcRequestId, isLockOverride); } } @@ -197,7 +225,11 @@ public DeleteDeploymentRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().deploymentId(deploymentId).ifMatch(ifMatch).opcRequestId(opcRequestId); + return new Builder() + .deploymentId(deploymentId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -216,6 +248,7 @@ public String toString() { sb.append(",deploymentId=").append(String.valueOf(this.deploymentId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -233,7 +266,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -243,6 +277,9 @@ public int hashCode() { result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateLibraryUrlRequest.java similarity index 51% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java rename to bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateLibraryUrlRequest.java index 7676062f57..035fe4612e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GenerateLibraryUrlRequest.java @@ -2,101 +2,94 @@ * 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.goldengate.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.goldengate.model.*; /** - * Example: Click here to see how to use ChangeAgentCompartmentRequest. + * Example: Click here to see how to use GenerateLibraryUrlRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ChangeAgentCompartmentRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GenerateLibraryUrlRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails> { + com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails> { /** - * The OCID of the agent + * A unique Deployment identifier. * */ - private String agentId; + private String deploymentId; /** - * The OCID of the agent + * A unique Deployment identifier. * */ - public String getAgentId() { - return agentId; + public String getDeploymentId() { + return deploymentId; } /** - * Details to change the compartment. + * A placeholder for any additional metadata to describe the request details. * */ - private com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails; + private com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails generateLibraryUrlDetails; /** - * Details to change the compartment. + * A placeholder for any additional metadata to describe the request details. * */ - public com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - getChangeAgentCompartmentDetails() { - return changeAgentCompartmentDetails; + public com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails + getGenerateLibraryUrlDetails() { + return generateLibraryUrlDetails; } /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the etag you provide matches the + * resource's current etag value. * */ - private String opcRetryToken; + private String ifMatch; /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the etag you provide matches the + * resource's current etag value. * */ - public String getOpcRetryToken() { - return opcRetryToken; + public String getIfMatch() { + return ifMatch; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * The client request ID for tracing. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * The client request ID for tracing. * */ public String getOpcRequestId() { return opcRequestId; } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without the risk of executing that same action again. Retry tokens expire after 24 hours but can be + * invalidated before then due to conflicting operations. For example, if a resource was deleted and purged + * from the system, then a retry of the original creation request is rejected. * */ - private String ifMatch; + private String 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. + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without the risk of executing that same action again. Retry tokens expire after 24 hours but can be + * invalidated before then due to conflicting operations. For example, if a resource was deleted and purged + * from the system, then a retry of the original creation request is rejected. * */ - public String getIfMatch() { - return ifMatch; + public String getOpcRetryToken() { + return opcRetryToken; } /** @@ -105,90 +98,86 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails getBody$() { - return changeAgentCompartmentDetails; + public com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails getBody$() { + return generateLibraryUrlDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeAgentCompartmentRequest, - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails> { + GenerateLibraryUrlRequest, + com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The OCID of the agent + * A unique Deployment identifier. * */ - private String agentId = null; + private String deploymentId = null; /** - * The OCID of the agent + * A unique Deployment identifier. * - * @param agentId the value to set + * @param deploymentId the value to set * @return this builder instance */ - public Builder agentId(String agentId) { - this.agentId = agentId; + public Builder deploymentId(String deploymentId) { + this.deploymentId = deploymentId; return this; } /** - * Details to change the compartment. + * A placeholder for any additional metadata to describe the request details. * */ - private com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails = null; + private com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails + generateLibraryUrlDetails = null; /** - * Details to change the compartment. + * A placeholder for any additional metadata to describe the request details. * - * @param changeAgentCompartmentDetails the value to set + * @param generateLibraryUrlDetails the value to set * @return this builder instance */ - public Builder changeAgentCompartmentDetails( - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails) { - this.changeAgentCompartmentDetails = changeAgentCompartmentDetails; + public Builder generateLibraryUrlDetails( + com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails + generateLibraryUrlDetails) { + this.generateLibraryUrlDetails = generateLibraryUrlDetails; return this; } /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the etag you provide matches the + * resource's current etag value. * */ - private String opcRetryToken = null; + private String ifMatch = null; /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource is updated or deleted only if the etag you provide matches the + * resource's current etag value. * - * @param opcRetryToken the value to set + * @param ifMatch the value to set * @return this builder instance */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * The client request ID for tracing. * */ private String opcRequestId = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * The client request ID for tracing. * * @param opcRequestId the value to set * @return this builder instance @@ -199,27 +188,25 @@ public Builder opcRequestId(String opcRequestId) { } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without the risk of executing that same action again. Retry tokens expire after 24 hours but can be + * invalidated before then due to conflicting operations. For example, if a resource was deleted and purged + * from the system, then a retry of the original creation request is rejected. * */ - private String ifMatch = null; + private String opcRetryToken = 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. + * A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + * without the risk of executing that same action again. Retry tokens expire after 24 hours but can be + * invalidated before then due to conflicting operations. For example, if a resource was deleted and purged + * from the system, then a retry of the original creation request is rejected. * - * @param ifMatch the value to set + * @param opcRetryToken the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; return this; } @@ -250,29 +237,29 @@ public Builder retryConfiguration( * 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()); + public Builder copy(GenerateLibraryUrlRequest o) { + deploymentId(o.getDeploymentId()); + generateLibraryUrlDetails(o.getGenerateLibraryUrlDetails()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of ChangeAgentCompartmentRequest as configured by this builder + * Build the instance of GenerateLibraryUrlRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ChangeAgentCompartmentRequest + * @return instance of GenerateLibraryUrlRequest */ - public ChangeAgentCompartmentRequest build() { - ChangeAgentCompartmentRequest request = buildWithoutInvocationCallback(); + public GenerateLibraryUrlRequest build() { + GenerateLibraryUrlRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -284,29 +271,28 @@ public ChangeAgentCompartmentRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails body) { - changeAgentCompartmentDetails(body); + public Builder body$(com.oracle.bmc.goldengate.model.GenerateLibraryUrlDetails body) { + generateLibraryUrlDetails(body); return this; } /** - * Build the instance of ChangeAgentCompartmentRequest as configured by this builder + * Build the instance of GenerateLibraryUrlRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ChangeAgentCompartmentRequest + * @return instance of GenerateLibraryUrlRequest */ - public ChangeAgentCompartmentRequest buildWithoutInvocationCallback() { - ChangeAgentCompartmentRequest request = new ChangeAgentCompartmentRequest(); - request.agentId = agentId; - request.changeAgentCompartmentDetails = changeAgentCompartmentDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; + public GenerateLibraryUrlRequest buildWithoutInvocationCallback() { + GenerateLibraryUrlRequest request = new GenerateLibraryUrlRequest(); + request.deploymentId = deploymentId; + request.generateLibraryUrlDetails = generateLibraryUrlDetails; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; return request; - // new ChangeAgentCompartmentRequest(agentId, changeAgentCompartmentDetails, opcRetryToken, opcRequestId, ifMatch); + // new GenerateLibraryUrlRequest(deploymentId, generateLibraryUrlDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -316,11 +302,11 @@ public ChangeAgentCompartmentRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .agentId(agentId) - .changeAgentCompartmentDetails(changeAgentCompartmentDetails) - .opcRetryToken(opcRetryToken) + .deploymentId(deploymentId) + .generateLibraryUrlDetails(generateLibraryUrlDetails) + .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .opcRetryToken(opcRetryToken); } /** @@ -336,12 +322,12 @@ 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(",deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(",generateLibraryUrlDetails=") + .append(String.valueOf(this.generateLibraryUrlDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); } @@ -351,35 +337,35 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeAgentCompartmentRequest)) { + if (!(o instanceof GenerateLibraryUrlRequest)) { return false; } - ChangeAgentCompartmentRequest other = (ChangeAgentCompartmentRequest) o; + GenerateLibraryUrlRequest other = (GenerateLibraryUrlRequest) o; return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.deploymentId, other.deploymentId) && java.util.Objects.equals( - this.changeAgentCompartmentDetails, other.changeAgentCompartmentDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + this.generateLibraryUrlDetails, other.generateLibraryUrlDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); + result = (result * PRIME) + (this.deploymentId == null ? 43 : this.deploymentId.hashCode()); result = (result * PRIME) - + (this.changeAgentCompartmentDetails == null + + (this.generateLibraryUrlDetails == null ? 43 - : this.changeAgentCompartmentDetails.hashCode()); + : this.generateLibraryUrlDetails.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ImportDeploymentWalletRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ImportDeploymentWalletRequest.java index 633cae5dc5..ab1db1cee1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ImportDeploymentWalletRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ImportDeploymentWalletRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -211,6 +222,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -244,6 +270,7 @@ public Builder copy(ImportDeploymentWalletRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -292,8 +319,9 @@ public ImportDeploymentWalletRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new ImportDeploymentWalletRequest(deploymentId, importDeploymentWalletDetails, ifMatch, opcRequestId, opcRetryToken); + // new ImportDeploymentWalletRequest(deploymentId, importDeploymentWalletDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -307,7 +335,8 @@ public Builder toBuilder() { .importDeploymentWalletDetails(importDeploymentWalletDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -329,6 +358,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -349,7 +379,8 @@ public boolean equals(Object o) { this.importDeploymentWalletDetails, other.importDeploymentWalletDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -367,6 +398,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveConnectionLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveConnectionLockRequest.java new file mode 100644 index 0000000000..44bb88a908 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveConnectionLockRequest.java @@ -0,0 +1,317 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use RemoveConnectionLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveConnectionLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + public String getConnectionId() { + return connectionId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + getRemoveResourceLockDetails() { + return removeResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveConnectionLockRequest, + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + */ + private String connectionId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a Connection. + * + * @param connectionId the value to set + * @return this builder instance + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails) { + this.removeResourceLockDetails = removeResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveConnectionLockRequest o) { + connectionId(o.getConnectionId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveConnectionLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of RemoveConnectionLockRequest + */ + public RemoveConnectionLockRequest build() { + RemoveConnectionLockRequest 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.goldengate.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveConnectionLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RemoveConnectionLockRequest + */ + public RemoveConnectionLockRequest buildWithoutInvocationCallback() { + RemoveConnectionLockRequest request = new RemoveConnectionLockRequest(); + request.connectionId = connectionId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveConnectionLockRequest(connectionId, removeResourceLockDetails, 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() + .connectionId(connectionId) + .removeResourceLockDetails(removeResourceLockDetails) + .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(",connectionId=").append(String.valueOf(this.connectionId)); + sb.append(",removeResourceLockDetails=") + .append(String.valueOf(this.removeResourceLockDetails)); + 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 RemoveConnectionLockRequest)) { + return false; + } + + RemoveConnectionLockRequest other = (RemoveConnectionLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.connectionId, other.connectionId) + && java.util.Objects.equals( + this.removeResourceLockDetails, other.removeResourceLockDetails) + && 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.connectionId == null ? 43 : this.connectionId.hashCode()); + result = + (result * PRIME) + + (this.removeResourceLockDetails == null + ? 43 + : this.removeResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentBackupLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentBackupLockRequest.java new file mode 100644 index 0000000000..cd525ba815 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentBackupLockRequest.java @@ -0,0 +1,321 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use RemoveDeploymentBackupLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentBackupLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + + /** + * A unique DeploymentBackup identifier. + * + */ + private String deploymentBackupId; + + /** + * A unique DeploymentBackup identifier. + * + */ + public String getDeploymentBackupId() { + return deploymentBackupId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + getRemoveResourceLockDetails() { + return removeResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDeploymentBackupLockRequest, + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique DeploymentBackup identifier. + * + */ + private String deploymentBackupId = null; + + /** + * A unique DeploymentBackup identifier. + * + * @param deploymentBackupId the value to set + * @return this builder instance + */ + public Builder deploymentBackupId(String deploymentBackupId) { + this.deploymentBackupId = deploymentBackupId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails) { + this.removeResourceLockDetails = removeResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDeploymentBackupLockRequest o) { + deploymentBackupId(o.getDeploymentBackupId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDeploymentBackupLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of RemoveDeploymentBackupLockRequest + */ + public RemoveDeploymentBackupLockRequest build() { + RemoveDeploymentBackupLockRequest 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.goldengate.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDeploymentBackupLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RemoveDeploymentBackupLockRequest + */ + public RemoveDeploymentBackupLockRequest buildWithoutInvocationCallback() { + RemoveDeploymentBackupLockRequest request = new RemoveDeploymentBackupLockRequest(); + request.deploymentBackupId = deploymentBackupId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDeploymentBackupLockRequest(deploymentBackupId, removeResourceLockDetails, 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() + .deploymentBackupId(deploymentBackupId) + .removeResourceLockDetails(removeResourceLockDetails) + .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(",deploymentBackupId=").append(String.valueOf(this.deploymentBackupId)); + sb.append(",removeResourceLockDetails=") + .append(String.valueOf(this.removeResourceLockDetails)); + 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 RemoveDeploymentBackupLockRequest)) { + return false; + } + + RemoveDeploymentBackupLockRequest other = (RemoveDeploymentBackupLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentBackupId, other.deploymentBackupId) + && java.util.Objects.equals( + this.removeResourceLockDetails, other.removeResourceLockDetails) + && 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.deploymentBackupId == null + ? 43 + : this.deploymentBackupId.hashCode()); + result = + (result * PRIME) + + (this.removeResourceLockDetails == null + ? 43 + : this.removeResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentLockRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentLockRequest.java new file mode 100644 index 0000000000..8d202fa707 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RemoveDeploymentLockRequest.java @@ -0,0 +1,317 @@ +/** + * 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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use RemoveDeploymentLockRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId; + + /** + * A unique Deployment identifier. + * + */ + public String getDeploymentId() { + return deploymentId; + } + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails removeResourceLockDetails; + + /** + * RemoveResourceLockDetails body parameter + */ + public com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + getRemoveResourceLockDetails() { + return removeResourceLockDetails; + } + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that 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.goldengate.model.RemoveResourceLockDetails getBody$() { + return removeResourceLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveDeploymentLockRequest, + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A unique Deployment identifier. + * + */ + private String deploymentId = null; + + /** + * A unique Deployment identifier. + * + * @param deploymentId the value to set + * @return this builder instance + */ + public Builder deploymentId(String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + /** + * RemoveResourceLockDetails body parameter + */ + private com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails = null; + + /** + * RemoveResourceLockDetails body parameter + * @param removeResourceLockDetails the value to set + * @return this builder instance + */ + public Builder removeResourceLockDetails( + com.oracle.bmc.goldengate.model.RemoveResourceLockDetails + removeResourceLockDetails) { + this.removeResourceLockDetails = removeResourceLockDetails; + return this; + } + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDeploymentLockRequest o) { + deploymentId(o.getDeploymentId()); + removeResourceLockDetails(o.getRemoveResourceLockDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveDeploymentLockRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of RemoveDeploymentLockRequest + */ + public RemoveDeploymentLockRequest build() { + RemoveDeploymentLockRequest 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.goldengate.model.RemoveResourceLockDetails body) { + removeResourceLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveDeploymentLockRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RemoveDeploymentLockRequest + */ + public RemoveDeploymentLockRequest buildWithoutInvocationCallback() { + RemoveDeploymentLockRequest request = new RemoveDeploymentLockRequest(); + request.deploymentId = deploymentId; + request.removeResourceLockDetails = removeResourceLockDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RemoveDeploymentLockRequest(deploymentId, removeResourceLockDetails, 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() + .deploymentId(deploymentId) + .removeResourceLockDetails(removeResourceLockDetails) + .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(",deploymentId=").append(String.valueOf(this.deploymentId)); + sb.append(",removeResourceLockDetails=") + .append(String.valueOf(this.removeResourceLockDetails)); + 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 RemoveDeploymentLockRequest)) { + return false; + } + + RemoveDeploymentLockRequest other = (RemoveDeploymentLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.deploymentId, other.deploymentId) + && java.util.Objects.equals( + this.removeResourceLockDetails, other.removeResourceLockDetails) + && 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.deploymentId == null ? 43 : this.deploymentId.hashCode()); + result = + (result * PRIME) + + (this.removeResourceLockDetails == null + ? 43 + : this.removeResourceLockDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RestoreDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RestoreDeploymentRequest.java index 390b9bc318..ceafd2ea5a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RestoreDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RestoreDeploymentRequest.java @@ -90,6 +90,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -208,6 +219,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -241,6 +267,7 @@ public Builder copy(RestoreDeploymentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -289,8 +316,9 @@ public RestoreDeploymentRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new RestoreDeploymentRequest(deploymentBackupId, restoreDeploymentDetails, ifMatch, opcRequestId, opcRetryToken); + // new RestoreDeploymentRequest(deploymentBackupId, restoreDeploymentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -304,7 +332,8 @@ public Builder toBuilder() { .restoreDeploymentDetails(restoreDeploymentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -326,6 +355,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -346,7 +376,8 @@ public boolean equals(Object o) { this.restoreDeploymentDetails, other.restoreDeploymentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -368,6 +399,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RollbackDeploymentUpgradeRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RollbackDeploymentUpgradeRequest.java index 5a37e7f678..167dd45244 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RollbackDeploymentUpgradeRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/RollbackDeploymentUpgradeRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -211,6 +222,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -244,6 +270,7 @@ public Builder copy(RollbackDeploymentUpgradeRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -293,8 +320,9 @@ public RollbackDeploymentUpgradeRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new RollbackDeploymentUpgradeRequest(deploymentUpgradeId, rollbackDeploymentUpgradeDetails, ifMatch, opcRequestId, opcRetryToken); + // new RollbackDeploymentUpgradeRequest(deploymentUpgradeId, rollbackDeploymentUpgradeDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -308,7 +336,8 @@ public Builder toBuilder() { .rollbackDeploymentUpgradeDetails(rollbackDeploymentUpgradeDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -330,6 +359,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -351,7 +381,8 @@ public boolean equals(Object o) { other.rollbackDeploymentUpgradeDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -373,6 +404,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartDeploymentRequest.java index 3b17cf97b8..1a455a83e4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartDeploymentRequest.java @@ -90,6 +90,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -208,6 +219,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -241,6 +267,7 @@ public Builder copy(StartDeploymentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -289,8 +316,9 @@ public StartDeploymentRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new StartDeploymentRequest(deploymentId, startDeploymentDetails, ifMatch, opcRequestId, opcRetryToken); + // new StartDeploymentRequest(deploymentId, startDeploymentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -304,7 +332,8 @@ public Builder toBuilder() { .startDeploymentDetails(startDeploymentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -325,6 +354,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -345,7 +375,8 @@ public boolean equals(Object o) { this.startDeploymentDetails, other.startDeploymentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -363,6 +394,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopDeploymentRequest.java index 9059dbd712..a226ff16d7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopDeploymentRequest.java @@ -90,6 +90,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -206,6 +217,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -239,6 +265,7 @@ public Builder copy(StopDeploymentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -287,8 +314,9 @@ public StopDeploymentRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new StopDeploymentRequest(deploymentId, stopDeploymentDetails, ifMatch, opcRequestId, opcRetryToken); + // new StopDeploymentRequest(deploymentId, stopDeploymentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -302,7 +330,8 @@ public Builder toBuilder() { .stopDeploymentDetails(stopDeploymentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -323,6 +352,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -342,7 +372,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.stopDeploymentDetails, other.stopDeploymentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -360,6 +391,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateConnectionRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateConnectionRequest.java index b24d560ea3..c1487ab4b6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateConnectionRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateConnectionRequest.java @@ -71,6 +71,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -166,6 +177,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -198,6 +224,7 @@ public Builder copy(UpdateConnectionRequest o) { updateConnectionDetails(o.getUpdateConnectionDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -245,8 +272,9 @@ public UpdateConnectionRequest buildWithoutInvocationCallback() { request.updateConnectionDetails = updateConnectionDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new UpdateConnectionRequest(connectionId, updateConnectionDetails, ifMatch, opcRequestId); + // new UpdateConnectionRequest(connectionId, updateConnectionDetails, ifMatch, opcRequestId, isLockOverride); } } @@ -259,7 +287,8 @@ public Builder toBuilder() { .connectionId(connectionId) .updateConnectionDetails(updateConnectionDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -279,6 +308,7 @@ public String toString() { sb.append(",updateConnectionDetails=").append(String.valueOf(this.updateConnectionDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -298,7 +328,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.updateConnectionDetails, other.updateConnectionDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -313,6 +344,9 @@ public int hashCode() { : this.updateConnectionDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentBackupRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentBackupRequest.java index 63ceee59b4..18ce074b70 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentBackupRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentBackupRequest.java @@ -73,6 +73,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -169,6 +180,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -201,6 +227,7 @@ public Builder copy(UpdateDeploymentBackupRequest o) { updateDeploymentBackupDetails(o.getUpdateDeploymentBackupDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -248,8 +275,9 @@ public UpdateDeploymentBackupRequest buildWithoutInvocationCallback() { request.updateDeploymentBackupDetails = updateDeploymentBackupDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new UpdateDeploymentBackupRequest(deploymentBackupId, updateDeploymentBackupDetails, ifMatch, opcRequestId); + // new UpdateDeploymentBackupRequest(deploymentBackupId, updateDeploymentBackupDetails, ifMatch, opcRequestId, isLockOverride); } } @@ -262,7 +290,8 @@ public Builder toBuilder() { .deploymentBackupId(deploymentBackupId) .updateDeploymentBackupDetails(updateDeploymentBackupDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -283,6 +312,7 @@ public String toString() { .append(String.valueOf(this.updateDeploymentBackupDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -302,7 +332,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.updateDeploymentBackupDetails, other.updateDeploymentBackupDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -321,6 +352,9 @@ public int hashCode() { : this.updateDeploymentBackupDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentRequest.java index 3db122ed69..a9ddca6cf6 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdateDeploymentRequest.java @@ -71,6 +71,17 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -166,6 +177,21 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -198,6 +224,7 @@ public Builder copy(UpdateDeploymentRequest o) { updateDeploymentDetails(o.getUpdateDeploymentDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -245,8 +272,9 @@ public UpdateDeploymentRequest buildWithoutInvocationCallback() { request.updateDeploymentDetails = updateDeploymentDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new UpdateDeploymentRequest(deploymentId, updateDeploymentDetails, ifMatch, opcRequestId); + // new UpdateDeploymentRequest(deploymentId, updateDeploymentDetails, ifMatch, opcRequestId, isLockOverride); } } @@ -259,7 +287,8 @@ public Builder toBuilder() { .deploymentId(deploymentId) .updateDeploymentDetails(updateDeploymentDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -279,6 +308,7 @@ public String toString() { sb.append(",updateDeploymentDetails=").append(String.valueOf(this.updateDeploymentDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -298,7 +328,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.updateDeploymentDetails, other.updateDeploymentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -313,6 +344,9 @@ public int hashCode() { : this.updateDeploymentDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentRequest.java index df5fdbf964..6e5ed60989 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentRequest.java @@ -90,6 +90,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -208,6 +219,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -241,6 +267,7 @@ public Builder copy(UpgradeDeploymentRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -289,8 +316,9 @@ public UpgradeDeploymentRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new UpgradeDeploymentRequest(deploymentId, upgradeDeploymentDetails, ifMatch, opcRequestId, opcRetryToken); + // new UpgradeDeploymentRequest(deploymentId, upgradeDeploymentDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -304,7 +332,8 @@ public Builder toBuilder() { .upgradeDeploymentDetails(upgradeDeploymentDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -326,6 +355,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -346,7 +376,8 @@ public boolean equals(Object o) { this.upgradeDeploymentDetails, other.upgradeDeploymentDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -364,6 +395,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentUpgradeRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentUpgradeRequest.java index c4edb9b970..b847ad1e4f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentUpgradeRequest.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpgradeDeploymentUpgradeRequest.java @@ -92,6 +92,17 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride; + + /** + * Whether to override locks (if any exist). + */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -211,6 +222,21 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** + * Whether to override locks (if any exist). + */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @param invocationCallback the invocation callback to be set for the request @@ -244,6 +270,7 @@ public Builder copy(UpgradeDeploymentUpgradeRequest o) { ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -292,8 +319,9 @@ public UpgradeDeploymentUpgradeRequest buildWithoutInvocationCallback() { request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; return request; - // new UpgradeDeploymentUpgradeRequest(deploymentUpgradeId, upgradeDeploymentUpgradeDetails, ifMatch, opcRequestId, opcRetryToken); + // new UpgradeDeploymentUpgradeRequest(deploymentUpgradeId, upgradeDeploymentUpgradeDetails, ifMatch, opcRequestId, opcRetryToken, isLockOverride); } } @@ -307,7 +335,8 @@ public Builder toBuilder() { .upgradeDeploymentUpgradeDetails(upgradeDeploymentUpgradeDetails) .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); } /** @@ -329,6 +358,7 @@ public String toString() { 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -349,7 +379,8 @@ public boolean equals(Object o) { this.upgradeDeploymentUpgradeDetails, other.upgradeDeploymentUpgradeDetails) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -371,6 +402,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddConnectionLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddConnectionLockResponse.java new file mode 100644 index 0000000000..9176967be6 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddConnectionLockResponse.java @@ -0,0 +1,210 @@ +/** + * 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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddConnectionLockResponse 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; + } + + /** + * etag for the returned Connection resource. + * + */ + private String etag; + + /** + * etag for the returned Connection resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned Connection instance. + */ + private com.oracle.bmc.goldengate.model.Connection connection; + + /** + * The returned Connection instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.Connection getConnection() { + return connection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "connection" + }) + private AddConnectionLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Connection connection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.connection = connection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned Connection resource. + * + */ + private String etag; + + /** + * etag for the returned Connection resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned Connection instance. + */ + private com.oracle.bmc.goldengate.model.Connection connection; + + /** + * The returned Connection instance. + * @param connection the value to set + * @return this builder + */ + public Builder connection(com.oracle.bmc.goldengate.model.Connection connection) { + this.connection = connection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddConnectionLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + connection(o.getConnection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddConnectionLockResponse build() { + return new AddConnectionLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, connection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",connection=").append(String.valueOf(connection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddConnectionLockResponse)) { + return false; + } + + AddConnectionLockResponse other = (AddConnectionLockResponse) 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.connection, other.connection); + } + + @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.connection == null ? 43 : this.connection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentBackupLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentBackupLockResponse.java new file mode 100644 index 0000000000..309deb9ee4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentBackupLockResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentBackupLockResponse 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; + } + + /** + * etag for the returned DeploymentBackup resource. + * + */ + private String etag; + + /** + * etag for the returned DeploymentBackup resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DeploymentBackup instance. + */ + private com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup; + + /** + * The returned DeploymentBackup instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.DeploymentBackup getDeploymentBackup() { + return deploymentBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "deploymentBackup" + }) + private AddDeploymentBackupLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.deploymentBackup = deploymentBackup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned DeploymentBackup resource. + * + */ + private String etag; + + /** + * etag for the returned DeploymentBackup resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DeploymentBackup instance. + */ + private com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup; + + /** + * The returned DeploymentBackup instance. + * @param deploymentBackup the value to set + * @return this builder + */ + public Builder deploymentBackup( + com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup) { + this.deploymentBackup = deploymentBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDeploymentBackupLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + deploymentBackup(o.getDeploymentBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDeploymentBackupLockResponse build() { + return new AddDeploymentBackupLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, deploymentBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",deploymentBackup=").append(String.valueOf(deploymentBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDeploymentBackupLockResponse)) { + return false; + } + + AddDeploymentBackupLockResponse other = (AddDeploymentBackupLockResponse) 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.deploymentBackup, other.deploymentBackup); + } + + @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.deploymentBackup == null ? 43 : this.deploymentBackup.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentLockResponse.java new file mode 100644 index 0000000000..ca39700f3a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/AddDeploymentLockResponse.java @@ -0,0 +1,210 @@ +/** + * 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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class AddDeploymentLockResponse 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; + } + + /** + * etag for the returned Deployment resource. + * + */ + private String etag; + + /** + * etag for the returned Deployment resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned Deployment instance. + */ + private com.oracle.bmc.goldengate.model.Deployment deployment; + + /** + * The returned Deployment instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.Deployment getDeployment() { + return deployment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "deployment" + }) + private AddDeploymentLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Deployment deployment) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.deployment = deployment; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned Deployment resource. + * + */ + private String etag; + + /** + * etag for the returned Deployment resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned Deployment instance. + */ + private com.oracle.bmc.goldengate.model.Deployment deployment; + + /** + * The returned Deployment instance. + * @param deployment the value to set + * @return this builder + */ + public Builder deployment(com.oracle.bmc.goldengate.model.Deployment deployment) { + this.deployment = deployment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AddDeploymentLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + deployment(o.getDeployment()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public AddDeploymentLockResponse build() { + return new AddDeploymentLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, deployment); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",deployment=").append(String.valueOf(deployment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddDeploymentLockResponse)) { + return false; + } + + AddDeploymentLockResponse other = (AddDeploymentLockResponse) 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.deployment, other.deployment); + } + + @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.deployment == null ? 43 : this.deployment.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateLibraryUrlResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateLibraryUrlResponse.java new file mode 100644 index 0000000000..66b6149f2e --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GenerateLibraryUrlResponse.java @@ -0,0 +1,210 @@ +/** + * 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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GenerateLibraryUrlResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include 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 LibraryUrl instance. + */ + private com.oracle.bmc.goldengate.model.LibraryUrl libraryUrl; + + /** + * The returned LibraryUrl instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.LibraryUrl getLibraryUrl() { + return libraryUrl; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "libraryUrl" + }) + private GenerateLibraryUrlResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.LibraryUrl libraryUrl) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.libraryUrl = libraryUrl; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include 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 LibraryUrl instance. + */ + private com.oracle.bmc.goldengate.model.LibraryUrl libraryUrl; + + /** + * The returned LibraryUrl instance. + * @param libraryUrl the value to set + * @return this builder + */ + public Builder libraryUrl(com.oracle.bmc.goldengate.model.LibraryUrl libraryUrl) { + this.libraryUrl = libraryUrl; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateLibraryUrlResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + libraryUrl(o.getLibraryUrl()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GenerateLibraryUrlResponse build() { + return new GenerateLibraryUrlResponse( + __httpStatusCode__, headers, opcRequestId, etag, libraryUrl); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",libraryUrl=").append(String.valueOf(libraryUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateLibraryUrlResponse)) { + return false; + } + + GenerateLibraryUrlResponse other = (GenerateLibraryUrlResponse) 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.libraryUrl, other.libraryUrl); + } + + @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.libraryUrl == null ? 43 : this.libraryUrl.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveConnectionLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveConnectionLockResponse.java new file mode 100644 index 0000000000..5f8badb28b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveConnectionLockResponse.java @@ -0,0 +1,210 @@ +/** + * 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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveConnectionLockResponse 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; + } + + /** + * etag for the returned Connection resource. + * + */ + private String etag; + + /** + * etag for the returned Connection resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned Connection instance. + */ + private com.oracle.bmc.goldengate.model.Connection connection; + + /** + * The returned Connection instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.Connection getConnection() { + return connection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "connection" + }) + private RemoveConnectionLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Connection connection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.connection = connection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned Connection resource. + * + */ + private String etag; + + /** + * etag for the returned Connection resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned Connection instance. + */ + private com.oracle.bmc.goldengate.model.Connection connection; + + /** + * The returned Connection instance. + * @param connection the value to set + * @return this builder + */ + public Builder connection(com.oracle.bmc.goldengate.model.Connection connection) { + this.connection = connection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveConnectionLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + connection(o.getConnection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveConnectionLockResponse build() { + return new RemoveConnectionLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, connection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",connection=").append(String.valueOf(connection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveConnectionLockResponse)) { + return false; + } + + RemoveConnectionLockResponse other = (RemoveConnectionLockResponse) 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.connection, other.connection); + } + + @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.connection == null ? 43 : this.connection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentBackupLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentBackupLockResponse.java new file mode 100644 index 0000000000..f42612541b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentBackupLockResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentBackupLockResponse 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; + } + + /** + * etag for the returned DeploymentBackup resource. + * + */ + private String etag; + + /** + * etag for the returned DeploymentBackup resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned DeploymentBackup instance. + */ + private com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup; + + /** + * The returned DeploymentBackup instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.DeploymentBackup getDeploymentBackup() { + return deploymentBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "deploymentBackup" + }) + private RemoveDeploymentBackupLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.deploymentBackup = deploymentBackup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned DeploymentBackup resource. + * + */ + private String etag; + + /** + * etag for the returned DeploymentBackup resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned DeploymentBackup instance. + */ + private com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup; + + /** + * The returned DeploymentBackup instance. + * @param deploymentBackup the value to set + * @return this builder + */ + public Builder deploymentBackup( + com.oracle.bmc.goldengate.model.DeploymentBackup deploymentBackup) { + this.deploymentBackup = deploymentBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDeploymentBackupLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + deploymentBackup(o.getDeploymentBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDeploymentBackupLockResponse build() { + return new RemoveDeploymentBackupLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, deploymentBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",deploymentBackup=").append(String.valueOf(deploymentBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDeploymentBackupLockResponse)) { + return false; + } + + RemoveDeploymentBackupLockResponse other = (RemoveDeploymentBackupLockResponse) 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.deploymentBackup, other.deploymentBackup); + } + + @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.deploymentBackup == null ? 43 : this.deploymentBackup.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentLockResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentLockResponse.java new file mode 100644 index 0000000000..8ece46ed59 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/RemoveDeploymentLockResponse.java @@ -0,0 +1,210 @@ +/** + * 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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class RemoveDeploymentLockResponse 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; + } + + /** + * etag for the returned Deployment resource. + * + */ + private String etag; + + /** + * etag for the returned Deployment resource. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned Deployment instance. + */ + private com.oracle.bmc.goldengate.model.Deployment deployment; + + /** + * The returned Deployment instance. + * @return the value + */ + public com.oracle.bmc.goldengate.model.Deployment getDeployment() { + return deployment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "deployment" + }) + private RemoveDeploymentLockResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Deployment deployment) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.deployment = deployment; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * etag for the returned Deployment resource. + * + */ + private String etag; + + /** + * etag for the returned Deployment resource. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned Deployment instance. + */ + private com.oracle.bmc.goldengate.model.Deployment deployment; + + /** + * The returned Deployment instance. + * @param deployment the value to set + * @return this builder + */ + public Builder deployment(com.oracle.bmc.goldengate.model.Deployment deployment) { + this.deployment = deployment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RemoveDeploymentLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + deployment(o.getDeployment()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RemoveDeploymentLockResponse build() { + return new RemoveDeploymentLockResponse( + __httpStatusCode__, headers, opcRequestId, etag, deployment); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return 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(",deployment=").append(String.valueOf(deployment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveDeploymentLockResponse)) { + return false; + } + + RemoveDeploymentLockResponse other = (RemoveDeploymentLockResponse) 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.deployment, other.deployment); + } + + @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.deployment == null ? 43 : this.deployment.hashCode()); + return result; + } +} diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 05f5fb09c4..0e5766f277 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 8cc87dfb42..87e61fbaba 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index cff704a244..452d46e045 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 20a09cf76f..0fde8ab327 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-identitydataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index db2bbd5ef7..a8f3940fcd 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-identitydomains @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 3bce3e9814..b146a414e1 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-integration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 93bb5df542..4c93c817f3 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-jms @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index de913fc97f..759f152037 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownload.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownload.java index 0cea22d7be..f26f63bb81 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownload.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownload.java @@ -8,7 +8,7 @@ import com.oracle.bmc.jmsjavadownloads.responses.*; /** - * The APIs for the download engine of the Java Management Service. + * The APIs for the Java Download feature of Java Management Service. * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230601") @@ -88,6 +88,7 @@ CreateJavaDownloadReportResponse createJavaDownloadReport( /** * Creates a new JavaDownloadToken in the tenancy with specified attributes. + * Ensure that you review the license terms before token generation. Visit the Oracle Java Downloads page to understand the license terms of the Java version for which you are generating a token. By generating a token, you agree to the associated license terms. See Oracle JDK Licensing - FAQs for detailed information. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsync.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsync.java index abb5827915..5531893352 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsync.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.jmsjavadownloads.responses.*; /** - * The APIs for the download engine of the Java Management Service. + * The APIs for the Java Download feature of Java Management Service. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230601") public interface JavaDownloadAsync extends AutoCloseable { @@ -94,6 +94,7 @@ java.util.concurrent.Future createJavaDownload /** * Creates a new JavaDownloadToken in the tenancy with specified attributes. + * Ensure that you review the license terms before token generation. Visit the Oracle Java Downloads page to understand the license terms of the Java version for which you are generating a token. By generating a token, you agree to the associated license terms. See Oracle JDK Licensing - FAQs for detailed information. * * * @param request The request object containing the details to send diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsyncClient.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsyncClient.java index 7c2001247f..e5e6b78d4e 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsyncClient.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadAsyncClient.java @@ -476,10 +476,7 @@ public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "CancelWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/CancelWorkRequest"); + "JavaDownload", "CancelWorkRequest", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -526,7 +523,7 @@ public java.util.concurrent.Future createJavaD "JavaDownload", "CreateJavaDownloadReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/CreateJavaDownloadReport"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, CreateJavaDownloadReportResponse> transformer = @@ -580,7 +577,7 @@ public java.util.concurrent.Future createJavaDo "JavaDownload", "CreateJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/CreateJavaDownloadToken"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, CreateJavaDownloadTokenResponse> transformer = @@ -636,7 +633,7 @@ protected void beforeRetryAction() {} "JavaDownload", "CreateJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/CreateJavaLicenseAcceptanceRecord"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, CreateJavaLicenseAcceptanceRecordResponse> transformer = @@ -692,7 +689,7 @@ public java.util.concurrent.Future deleteJavaD "JavaDownload", "DeleteJavaDownloadReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/DeleteJavaDownloadReport"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, DeleteJavaDownloadReportResponse> transformer = @@ -740,7 +737,7 @@ public java.util.concurrent.Future deleteJavaDo "JavaDownload", "DeleteJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/DeleteJavaDownloadToken"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, DeleteJavaDownloadTokenResponse> transformer = @@ -790,7 +787,7 @@ protected void beforeRetryAction() {} "JavaDownload", "DeleteJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/DeleteJavaLicenseAcceptanceRecord"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, DeleteJavaLicenseAcceptanceRecordResponse> transformer = @@ -843,7 +840,7 @@ protected void beforeRetryAction() {} "JavaDownload", "GenerateArtifactDownloadUrl", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/DownloadUrl/GenerateArtifactDownloadUrl"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, GenerateArtifactDownloadUrlResponse> transformer = @@ -894,10 +891,7 @@ public java.util.concurrent.Future getJavaDownloa GetJavaDownloadReportConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaDownloadReport", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/GetJavaDownloadReport"); + "JavaDownload", "GetJavaDownloadReport", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetJavaDownloadReportConverter.fromResponse( @@ -946,7 +940,7 @@ protected void beforeRetryAction() {} "JavaDownload", "GetJavaDownloadReportContent", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/GetJavaDownloadReportContent"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, GetJavaDownloadReportContentResponse> transformer = @@ -992,10 +986,7 @@ public java.util.concurrent.Future getJavaDownload GetJavaDownloadTokenConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaDownloadToken", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/GetJavaDownloadToken"); + "JavaDownload", "GetJavaDownloadToken", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetJavaDownloadTokenConverter.fromResponse( @@ -1039,10 +1030,7 @@ public java.util.concurrent.Future getJavaLicense( GetJavaLicenseConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaLicense", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicense/GetJavaLicense"); + "JavaDownload", "GetJavaLicense", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetJavaLicenseConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1089,7 +1077,7 @@ protected void beforeRetryAction() {} "JavaDownload", "GetJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/GetJavaLicenseAcceptanceRecord"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, GetJavaLicenseAcceptanceRecordResponse> transformer = @@ -1136,10 +1124,7 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/GetWorkRequest"); + "JavaDownload", "GetWorkRequest", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1184,7 +1169,7 @@ public java.util.concurrent.Future listJavaDown "JavaDownload", "ListJavaDownloadRecords", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadRecord/ListJavaDownloadRecords"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ListJavaDownloadRecordsResponse> transformer = @@ -1232,7 +1217,7 @@ public java.util.concurrent.Future listJavaDown "JavaDownload", "ListJavaDownloadReports", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/ListJavaDownloadReports"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ListJavaDownloadReportsResponse> transformer = @@ -1280,7 +1265,7 @@ public java.util.concurrent.Future listJavaDownl "JavaDownload", "ListJavaDownloadTokens", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/ListJavaDownloadTokens"); + ""); final java.util.function.Function transformer = ListJavaDownloadTokensConverter.fromResponse( @@ -1329,7 +1314,7 @@ protected void beforeRetryAction() {} "JavaDownload", "ListJavaLicenseAcceptanceRecords", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/ListJavaLicenseAcceptanceRecords"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ListJavaLicenseAcceptanceRecordsResponse> transformer = @@ -1377,10 +1362,7 @@ public java.util.concurrent.Future listJavaLicenses( ListJavaLicensesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListJavaLicenses", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicense/ListJavaLicenses"); + "JavaDownload", "ListJavaLicenses", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListJavaLicensesConverter.fromResponse( @@ -1423,10 +1405,7 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequestError/ListWorkRequestErrors"); + "JavaDownload", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1470,10 +1449,7 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequestLogEntry/ListWorkRequestLogs"); + "JavaDownload", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -1517,10 +1493,7 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/ListWorkRequests"); + "JavaDownload", "ListWorkRequests", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -1569,7 +1542,7 @@ protected void beforeRetryAction() {} "JavaDownload", "RequestSummarizedJavaDownloadCounts", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadCountAggregation/RequestSummarizedJavaDownloadCounts"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, RequestSummarizedJavaDownloadCountsResponse> transformer = @@ -1625,7 +1598,7 @@ public java.util.concurrent.Future updateJavaDo "JavaDownload", "UpdateJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/UpdateJavaDownloadToken"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, UpdateJavaDownloadTokenResponse> transformer = @@ -1680,7 +1653,7 @@ protected void beforeRetryAction() {} "JavaDownload", "UpdateJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/UpdateJavaLicenseAcceptanceRecord"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, UpdateJavaLicenseAcceptanceRecordResponse> transformer = diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java index 82d90dfed2..30c9bf680e 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/JavaDownloadClient.java @@ -567,10 +567,7 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "CancelWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/CancelWorkRequest"); + "JavaDownload", "CancelWorkRequest", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -610,7 +607,7 @@ public CreateJavaDownloadReportResponse createJavaDownloadReport( "JavaDownload", "CreateJavaDownloadReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/CreateJavaDownloadReport"); + ""); java.util.function.Function transformer = CreateJavaDownloadReportConverter.fromResponse( @@ -653,7 +650,7 @@ public CreateJavaDownloadTokenResponse createJavaDownloadToken( "JavaDownload", "CreateJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/CreateJavaDownloadToken"); + ""); java.util.function.Function transformer = CreateJavaDownloadTokenConverter.fromResponse( @@ -696,7 +693,7 @@ public CreateJavaLicenseAcceptanceRecordResponse createJavaLicenseAcceptanceReco "JavaDownload", "CreateJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/CreateJavaLicenseAcceptanceRecord"); + ""); java.util.function.Function< javax.ws.rs.core.Response, CreateJavaLicenseAcceptanceRecordResponse> transformer = @@ -740,7 +737,7 @@ public DeleteJavaDownloadReportResponse deleteJavaDownloadReport( "JavaDownload", "DeleteJavaDownloadReport", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/DeleteJavaDownloadReport"); + ""); java.util.function.Function transformer = DeleteJavaDownloadReportConverter.fromResponse( @@ -779,7 +776,7 @@ public DeleteJavaDownloadTokenResponse deleteJavaDownloadToken( "JavaDownload", "DeleteJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/DeleteJavaDownloadToken"); + ""); java.util.function.Function transformer = DeleteJavaDownloadTokenConverter.fromResponse( @@ -818,7 +815,7 @@ public DeleteJavaLicenseAcceptanceRecordResponse deleteJavaLicenseAcceptanceReco "JavaDownload", "DeleteJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/DeleteJavaLicenseAcceptanceRecord"); + ""); java.util.function.Function< javax.ws.rs.core.Response, DeleteJavaLicenseAcceptanceRecordResponse> transformer = @@ -858,7 +855,7 @@ public GenerateArtifactDownloadUrlResponse generateArtifactDownloadUrl( "JavaDownload", "GenerateArtifactDownloadUrl", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/DownloadUrl/GenerateArtifactDownloadUrl"); + ""); java.util.function.Function transformer = GenerateArtifactDownloadUrlConverter.fromResponse( @@ -898,10 +895,7 @@ public GetJavaDownloadReportResponse getJavaDownloadReport( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaDownloadReport", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/GetJavaDownloadReport"); + "JavaDownload", "GetJavaDownloadReport", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetJavaDownloadReportConverter.fromResponse( @@ -939,7 +933,7 @@ public GetJavaDownloadReportContentResponse getJavaDownloadReportContent( "JavaDownload", "GetJavaDownloadReportContent", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/GetJavaDownloadReportContent"); + ""); java.util.function.Function transformer = GetJavaDownloadReportContentConverter.fromResponse( @@ -973,10 +967,7 @@ public GetJavaDownloadTokenResponse getJavaDownloadToken(GetJavaDownloadTokenReq com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaDownloadToken", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/GetJavaDownloadToken"); + "JavaDownload", "GetJavaDownloadToken", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetJavaDownloadTokenConverter.fromResponse( @@ -1010,10 +1001,7 @@ public GetJavaLicenseResponse getJavaLicense(GetJavaLicenseRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetJavaLicense", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicense/GetJavaLicense"); + "JavaDownload", "GetJavaLicense", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetJavaLicenseConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1049,7 +1037,7 @@ public GetJavaLicenseAcceptanceRecordResponse getJavaLicenseAcceptanceRecord( "JavaDownload", "GetJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/GetJavaLicenseAcceptanceRecord"); + ""); java.util.function.Function< javax.ws.rs.core.Response, GetJavaLicenseAcceptanceRecordResponse> transformer = @@ -1084,10 +1072,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/GetWorkRequest"); + "JavaDownload", "GetWorkRequest", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1123,7 +1108,7 @@ public ListJavaDownloadRecordsResponse listJavaDownloadRecords( "JavaDownload", "ListJavaDownloadRecords", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadRecord/ListJavaDownloadRecords"); + ""); java.util.function.Function transformer = ListJavaDownloadRecordsConverter.fromResponse( @@ -1161,7 +1146,7 @@ public ListJavaDownloadReportsResponse listJavaDownloadReports( "JavaDownload", "ListJavaDownloadReports", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadReport/ListJavaDownloadReports"); + ""); java.util.function.Function transformer = ListJavaDownloadReportsConverter.fromResponse( @@ -1199,7 +1184,7 @@ public ListJavaDownloadTokensResponse listJavaDownloadTokens( "JavaDownload", "ListJavaDownloadTokens", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/ListJavaDownloadTokens"); + ""); java.util.function.Function transformer = ListJavaDownloadTokensConverter.fromResponse( @@ -1237,7 +1222,7 @@ public ListJavaLicenseAcceptanceRecordsResponse listJavaLicenseAcceptanceRecords "JavaDownload", "ListJavaLicenseAcceptanceRecords", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/ListJavaLicenseAcceptanceRecords"); + ""); java.util.function.Function< javax.ws.rs.core.Response, ListJavaLicenseAcceptanceRecordsResponse> transformer = @@ -1272,10 +1257,7 @@ public ListJavaLicensesResponse listJavaLicenses(ListJavaLicensesRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListJavaLicenses", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicense/ListJavaLicenses"); + "JavaDownload", "ListJavaLicenses", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListJavaLicensesConverter.fromResponse( @@ -1310,10 +1292,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequestError/ListWorkRequestErrors"); + "JavaDownload", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1347,10 +1326,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequestLogEntry/ListWorkRequestLogs"); + "JavaDownload", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -1384,10 +1360,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "JavaDownload", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/WorkRequest/ListWorkRequests"); + "JavaDownload", "ListWorkRequests", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -1426,7 +1399,7 @@ public RequestSummarizedJavaDownloadCountsResponse requestSummarizedJavaDownload "JavaDownload", "RequestSummarizedJavaDownloadCounts", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadCountAggregation/RequestSummarizedJavaDownloadCounts"); + ""); java.util.function.Function< javax.ws.rs.core.Response, RequestSummarizedJavaDownloadCountsResponse> transformer = @@ -1470,7 +1443,7 @@ public UpdateJavaDownloadTokenResponse updateJavaDownloadToken( "JavaDownload", "UpdateJavaDownloadToken", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaDownloadToken/UpdateJavaDownloadToken"); + ""); java.util.function.Function transformer = UpdateJavaDownloadTokenConverter.fromResponse( @@ -1512,7 +1485,7 @@ public UpdateJavaLicenseAcceptanceRecordResponse updateJavaLicenseAcceptanceReco "JavaDownload", "UpdateJavaLicenseAcceptanceRecord", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/jms-java-download/20230601/JavaLicenseAcceptanceRecord/UpdateJavaLicenseAcceptanceRecord"); + ""); java.util.function.Function< javax.ws.rs.core.Response, UpdateJavaLicenseAcceptanceRecordResponse> transformer = diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaDownloadReportDetails.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaDownloadReportDetails.java index 45b1dadcd7..afe8bed436 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaDownloadReportDetails.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaDownloadReportDetails.java @@ -28,7 +28,9 @@ public final class CreateJavaDownloadReportDetails "timeEnd", "sortBy", "sortOrder", - "format" + "format", + "freeformTags", + "definedTags" }) public CreateJavaDownloadReportDetails( String compartmentId, @@ -36,7 +38,9 @@ public CreateJavaDownloadReportDetails( java.util.Date timeEnd, JavaDownloadRecordSortBy sortBy, SortOrder sortOrder, - JavaDownloadReportFormat format) { + JavaDownloadReportFormat format, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.compartmentId = compartmentId; this.timeStart = timeStart; @@ -44,6 +48,8 @@ public CreateJavaDownloadReportDetails( this.sortBy = sortBy; this.sortOrder = sortOrder; this.format = format; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -105,13 +111,13 @@ public Builder timeEnd(java.util.Date timeEnd) { return this; } /** - * The property to be used for sorting the reports. + * The property to be used for sorting the records. **/ @com.fasterxml.jackson.annotation.JsonProperty("sortBy") private JavaDownloadRecordSortBy sortBy; /** - * The property to be used for sorting the reports. + * The property to be used for sorting the records. * @param sortBy the value to set * @return this builder **/ @@ -121,13 +127,13 @@ public Builder sortBy(JavaDownloadRecordSortBy sortBy) { return this; } /** - * The sort order for the reports. + * The sort order for the records. **/ @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") private SortOrder sortOrder; /** - * The sort order for the reports. + * The sort order for the records. * @param sortOrder the value to set * @return this builder **/ @@ -152,6 +158,47 @@ public Builder format(JavaDownloadReportFormat format) { this.__explicitlySet__.add("format"); 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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -164,7 +211,9 @@ public CreateJavaDownloadReportDetails build() { this.timeEnd, this.sortBy, this.sortOrder, - this.format); + this.format, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -191,6 +240,12 @@ public Builder copy(CreateJavaDownloadReportDetails model) { if (model.wasPropertyExplicitlySet("format")) { this.format(model.getFormat()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } return this; } } @@ -257,13 +312,13 @@ public java.util.Date getTimeEnd() { } /** - * The property to be used for sorting the reports. + * The property to be used for sorting the records. **/ @com.fasterxml.jackson.annotation.JsonProperty("sortBy") private final JavaDownloadRecordSortBy sortBy; /** - * The property to be used for sorting the reports. + * The property to be used for sorting the records. * @return the value **/ public JavaDownloadRecordSortBy getSortBy() { @@ -271,13 +326,13 @@ public JavaDownloadRecordSortBy getSortBy() { } /** - * The sort order for the reports. + * The sort order for the records. **/ @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") private final SortOrder sortOrder; /** - * The sort order for the reports. + * The sort order for the records. * @return the value **/ public SortOrder getSortOrder() { @@ -298,6 +353,42 @@ public JavaDownloadReportFormat getFormat() { return format; } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -318,6 +409,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sortBy=").append(String.valueOf(this.sortBy)); sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(", format=").append(String.valueOf(this.format)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -338,6 +431,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -353,6 +448,8 @@ public int 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.format == null ? 43 : this.format.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-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaLicenseAcceptanceRecordDetails.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaLicenseAcceptanceRecordDetails.java index c46641d0e4..637bddb4bf 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaLicenseAcceptanceRecordDetails.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/CreateJavaLicenseAcceptanceRecordDetails.java @@ -22,15 +22,25 @@ public final class CreateJavaLicenseAcceptanceRecordDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "licenseType", "licenseAcceptanceStatus"}) + @java.beans.ConstructorProperties({ + "compartmentId", + "licenseType", + "licenseAcceptanceStatus", + "freeformTags", + "definedTags" + }) public CreateJavaLicenseAcceptanceRecordDetails( String compartmentId, LicenseType licenseType, - LicenseAcceptanceStatus licenseAcceptanceStatus) { + LicenseAcceptanceStatus licenseAcceptanceStatus, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.compartmentId = compartmentId; this.licenseType = licenseType; this.licenseAcceptanceStatus = licenseAcceptanceStatus; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -83,6 +93,47 @@ public Builder licenseAcceptanceStatus(LicenseAcceptanceStatus licenseAcceptance this.__explicitlySet__.add("licenseAcceptanceStatus"); 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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -90,7 +141,11 @@ public Builder licenseAcceptanceStatus(LicenseAcceptanceStatus licenseAcceptance public CreateJavaLicenseAcceptanceRecordDetails build() { CreateJavaLicenseAcceptanceRecordDetails model = new CreateJavaLicenseAcceptanceRecordDetails( - this.compartmentId, this.licenseType, this.licenseAcceptanceStatus); + this.compartmentId, + this.licenseType, + this.licenseAcceptanceStatus, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +163,12 @@ public Builder copy(CreateJavaLicenseAcceptanceRecordDetails model) { if (model.wasPropertyExplicitlySet("licenseAcceptanceStatus")) { this.licenseAcceptanceStatus(model.getLicenseAcceptanceStatus()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } return this; } } @@ -165,6 +226,42 @@ public LicenseAcceptanceStatus getLicenseAcceptanceStatus() { return licenseAcceptanceStatus; } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -183,6 +280,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", licenseType=").append(String.valueOf(this.licenseType)); sb.append(", licenseAcceptanceStatus=") .append(String.valueOf(this.licenseAcceptanceStatus)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -202,6 +301,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.licenseType, other.licenseType) && java.util.Objects.equals( this.licenseAcceptanceStatus, other.licenseAcceptanceStatus) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -218,6 +319,8 @@ public int hashCode() { + (this.licenseAcceptanceStatus == null ? 43 : this.licenseAcceptanceStatus.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-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadCountAggregation.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadCountAggregation.java index a8247c87eb..eefe04bd24 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadCountAggregation.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadCountAggregation.java @@ -151,13 +151,13 @@ public Builder architecture(String architecture) { return this; } /** - * The package type(typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. + * The package type (typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private String packageType; /** - * The package type(typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. + * The package type (typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. * @param packageType the value to set * @return this builder **/ @@ -329,13 +329,13 @@ public String getArchitecture() { } /** - * The package type(typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. + * The package type (typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private final String packageType; /** - * The package type(typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. + * The package type (typically the file extension) of the artifact. Applicable only to {@code PLATFORM} aggregationType. * @return the value **/ public String getPackageType() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecord.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecord.java index 324b4720fc..d30fae7e85 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecord.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecord.java @@ -140,13 +140,13 @@ public Builder architecture(String architecture) { return this; } /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private String packageType; /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. * @param packageType the value to set * @return this builder **/ @@ -360,13 +360,13 @@ public String getArchitecture() { } /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private final String packageType; /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. * @return the value **/ public String getPackageType() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSortBy.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSortBy.java index 288ebe2b9e..b3299ab390 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSortBy.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSortBy.java @@ -12,7 +12,15 @@ public enum JavaDownloadRecordSortBy { TimeDownloaded("timeDownloaded"), DownloadSourceId("downloadSourceId"), DownloadType("downloadType"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(JavaDownloadRecordSortBy.class); private final String value; private static java.util.Map map; @@ -20,7 +28,9 @@ public enum JavaDownloadRecordSortBy { static { map = new java.util.HashMap<>(); for (JavaDownloadRecordSortBy v : JavaDownloadRecordSortBy.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -38,6 +48,9 @@ public static JavaDownloadRecordSortBy create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid JavaDownloadRecordSortBy: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'JavaDownloadRecordSortBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; } } diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSummary.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSummary.java index 05e243b006..ea34468625 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSummary.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadRecordSummary.java @@ -141,13 +141,13 @@ public Builder architecture(String architecture) { return this; } /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private String packageType; /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. * @param packageType the value to set * @return this builder **/ @@ -361,13 +361,13 @@ public String getArchitecture() { } /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. **/ @com.fasterxml.jackson.annotation.JsonProperty("packageType") private final String packageType; /** - * The package type(typically the file extension) of the artifact. + * The package type (typically the file extension) of the artifact. * @return the value **/ public String getPackageType() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReport.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReport.java index 668b7093cb..0a998e3cb5 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReport.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReport.java @@ -33,6 +33,10 @@ public final class JavaDownloadReport extends com.oracle.bmc.http.internal.Expli "compartmentId", "createdBy", "timeCreated", + "timeStart", + "timeEnd", + "sortBy", + "sortOrder", "lifecycleState", "freeformTags", "definedTags", @@ -48,6 +52,10 @@ public JavaDownloadReport( String compartmentId, Principal createdBy, java.util.Date timeCreated, + java.util.Date timeStart, + java.util.Date timeEnd, + JavaDownloadRecordSortBy sortBy, + SortOrder sortOrder, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -62,6 +70,10 @@ public JavaDownloadReport( this.compartmentId = compartmentId; this.createdBy = createdBy; this.timeCreated = timeCreated; + this.timeStart = timeStart; + this.timeEnd = timeEnd; + this.sortBy = sortBy; + this.sortOrder = sortOrder; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -196,13 +208,13 @@ public Builder createdBy(Principal createdBy) { return this; } /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -211,6 +223,74 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private java.util.Date timeStart; + + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @param timeStart the value to set + * @return this builder + **/ + public Builder timeStart(java.util.Date timeStart) { + this.timeStart = timeStart; + this.__explicitlySet__.add("timeStart"); + return this; + } + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") + private java.util.Date timeEnd; + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @param timeEnd the value to set + * @return this builder + **/ + public Builder timeEnd(java.util.Date timeEnd) { + this.timeEnd = timeEnd; + this.__explicitlySet__.add("timeEnd"); + return this; + } + /** + * The property used for sorting the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private JavaDownloadRecordSortBy sortBy; + + /** + * The property used for sorting the records. + * @param sortBy the value to set + * @return this builder + **/ + public Builder sortBy(JavaDownloadRecordSortBy sortBy) { + this.sortBy = sortBy; + this.__explicitlySet__.add("sortBy"); + return this; + } + /** + * The sort order for the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private SortOrder sortOrder; + + /** + * The sort order for the records. + * @param sortOrder the value to set + * @return this builder + **/ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + this.__explicitlySet__.add("sortOrder"); + return this; + } /** * The current state of the Java download report. **/ @@ -310,6 +390,10 @@ public JavaDownloadReport build() { this.compartmentId, this.createdBy, this.timeCreated, + this.timeStart, + this.timeEnd, + this.sortBy, + this.sortOrder, this.lifecycleState, this.freeformTags, this.definedTags, @@ -349,6 +433,18 @@ public Builder copy(JavaDownloadReport model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeStart")) { + this.timeStart(model.getTimeStart()); + } + if (model.wasPropertyExplicitlySet("timeEnd")) { + this.timeEnd(model.getTimeEnd()); + } + if (model.wasPropertyExplicitlySet("sortBy")) { + this.sortBy(model.getSortBy()); + } + if (model.wasPropertyExplicitlySet("sortOrder")) { + this.sortOrder(model.getSortOrder()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -486,19 +582,79 @@ public Principal getCreatedBy() { } /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { return timeCreated; } + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private final java.util.Date timeStart; + + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @return the value + **/ + public java.util.Date getTimeStart() { + return timeStart; + } + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") + private final java.util.Date timeEnd; + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @return the value + **/ + public java.util.Date getTimeEnd() { + return timeEnd; + } + + /** + * The property used for sorting the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private final JavaDownloadRecordSortBy sortBy; + + /** + * The property used for sorting the records. + * @return the value + **/ + public JavaDownloadRecordSortBy getSortBy() { + return sortBy; + } + + /** + * The sort order for the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private final SortOrder sortOrder; + + /** + * The sort order for the records. + * @return the value + **/ + public SortOrder getSortOrder() { + return sortOrder; + } + /** * The current state of the Java download report. **/ @@ -596,6 +752,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", createdBy=").append(String.valueOf(this.createdBy)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeStart=").append(String.valueOf(this.timeStart)); + sb.append(", timeEnd=").append(String.valueOf(this.timeEnd)); + sb.append(", sortBy=").append(String.valueOf(this.sortBy)); + sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -623,6 +783,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.createdBy, other.createdBy) && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeStart, other.timeStart) + && java.util.Objects.equals(this.timeEnd, other.timeEnd) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -649,6 +813,10 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); + result = (result * PRIME) + (this.timeEnd == null ? 43 : this.timeEnd.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReportSummary.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReportSummary.java index ca64dfdb19..c26831ee0c 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReportSummary.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadReportSummary.java @@ -33,6 +33,10 @@ public final class JavaDownloadReportSummary "compartmentId", "createdBy", "timeCreated", + "timeStart", + "timeEnd", + "sortBy", + "sortOrder", "lifecycleState", "freeformTags", "definedTags", @@ -48,6 +52,10 @@ public JavaDownloadReportSummary( String compartmentId, Principal createdBy, java.util.Date timeCreated, + java.util.Date timeStart, + java.util.Date timeEnd, + JavaDownloadRecordSortBy sortBy, + SortOrder sortOrder, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -62,6 +70,10 @@ public JavaDownloadReportSummary( this.compartmentId = compartmentId; this.createdBy = createdBy; this.timeCreated = timeCreated; + this.timeStart = timeStart; + this.timeEnd = timeEnd; + this.sortBy = sortBy; + this.sortOrder = sortOrder; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -196,13 +208,13 @@ public Builder createdBy(Principal createdBy) { return this; } /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -211,6 +223,74 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private java.util.Date timeStart; + + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @param timeStart the value to set + * @return this builder + **/ + public Builder timeStart(java.util.Date timeStart) { + this.timeStart = timeStart; + this.__explicitlySet__.add("timeStart"); + return this; + } + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") + private java.util.Date timeEnd; + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @param timeEnd the value to set + * @return this builder + **/ + public Builder timeEnd(java.util.Date timeEnd) { + this.timeEnd = timeEnd; + this.__explicitlySet__.add("timeEnd"); + return this; + } + /** + * The property used for sorting the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private JavaDownloadRecordSortBy sortBy; + + /** + * The property used for sorting the records. + * @param sortBy the value to set + * @return this builder + **/ + public Builder sortBy(JavaDownloadRecordSortBy sortBy) { + this.sortBy = sortBy; + this.__explicitlySet__.add("sortBy"); + return this; + } + /** + * The sort order for the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private SortOrder sortOrder; + + /** + * The sort order for the records. + * @param sortOrder the value to set + * @return this builder + **/ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + this.__explicitlySet__.add("sortOrder"); + return this; + } /** * The current state of the Java download report. **/ @@ -310,6 +390,10 @@ public JavaDownloadReportSummary build() { this.compartmentId, this.createdBy, this.timeCreated, + this.timeStart, + this.timeEnd, + this.sortBy, + this.sortOrder, this.lifecycleState, this.freeformTags, this.definedTags, @@ -349,6 +433,18 @@ public Builder copy(JavaDownloadReportSummary model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeStart")) { + this.timeStart(model.getTimeStart()); + } + if (model.wasPropertyExplicitlySet("timeEnd")) { + this.timeEnd(model.getTimeEnd()); + } + if (model.wasPropertyExplicitlySet("sortBy")) { + this.sortBy(model.getSortBy()); + } + if (model.wasPropertyExplicitlySet("sortOrder")) { + this.sortOrder(model.getSortOrder()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -486,19 +582,79 @@ public Principal getCreatedBy() { } /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Java download report was created. An RFC3339 formatted datetime string. + * The time the Java download report was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { return timeCreated; } + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStart") + private final java.util.Date timeStart; + + /** + * The start time from when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @return the value + **/ + public java.util.Date getTimeStart() { + return timeStart; + } + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnd") + private final java.util.Date timeEnd; + + /** + * The end time until when the download records are included (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * + * @return the value + **/ + public java.util.Date getTimeEnd() { + return timeEnd; + } + + /** + * The property used for sorting the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private final JavaDownloadRecordSortBy sortBy; + + /** + * The property used for sorting the records. + * @return the value + **/ + public JavaDownloadRecordSortBy getSortBy() { + return sortBy; + } + + /** + * The sort order for the records. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private final SortOrder sortOrder; + + /** + * The sort order for the records. + * @return the value + **/ + public SortOrder getSortOrder() { + return sortOrder; + } + /** * The current state of the Java download report. **/ @@ -596,6 +752,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", createdBy=").append(String.valueOf(this.createdBy)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeStart=").append(String.valueOf(this.timeStart)); + sb.append(", timeEnd=").append(String.valueOf(this.timeEnd)); + sb.append(", sortBy=").append(String.valueOf(this.sortBy)); + sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -623,6 +783,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.createdBy, other.createdBy) && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeStart, other.timeStart) + && java.util.Objects.equals(this.timeEnd, other.timeEnd) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -649,6 +813,10 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); + result = (result * PRIME) + (this.timeEnd == null ? 43 : this.timeEnd.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadToken.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadToken.java index 3eec1fdbcd..97cdb80775 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadToken.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadToken.java @@ -189,13 +189,13 @@ public Builder value(String value) { return this; } /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -205,13 +205,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -221,13 +221,13 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUsed") private java.util.Date timeLastUsed; /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeLastUsed the value to set * @return this builder **/ @@ -237,13 +237,13 @@ public Builder timeLastUsed(java.util.Date timeLastUsed) { return this; } /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") private java.util.Date timeExpires; /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeExpires the value to set * @return this builder **/ @@ -594,13 +594,13 @@ public String getValue() { } /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { @@ -608,13 +608,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { @@ -622,13 +622,13 @@ public java.util.Date getTimeUpdated() { } /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUsed") private final java.util.Date timeLastUsed; /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeLastUsed() { @@ -636,13 +636,13 @@ public java.util.Date getTimeLastUsed() { } /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") private final java.util.Date timeExpires; /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeExpires() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadTokenSummary.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadTokenSummary.java index 50cfa48867..ef33410097 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadTokenSummary.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaDownloadTokenSummary.java @@ -190,13 +190,13 @@ public Builder value(String value) { return this; } /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -206,13 +206,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -222,13 +222,13 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUsed") private java.util.Date timeLastUsed; /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeLastUsed the value to set * @return this builder **/ @@ -238,13 +238,13 @@ public Builder timeLastUsed(java.util.Date timeLastUsed) { return this; } /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") private java.util.Date timeExpires; /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @param timeExpires the value to set * @return this builder **/ @@ -595,13 +595,13 @@ public String getValue() { } /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the JavaDownloadToken was created. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was created, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { @@ -609,13 +609,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was updated, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { @@ -623,13 +623,13 @@ public java.util.Date getTimeUpdated() { } /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUsed") private final java.util.Date timeLastUsed; /** - * The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string. + * The time the JavaDownloadToken was last used for download, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeLastUsed() { @@ -637,13 +637,13 @@ public java.util.Date getTimeLastUsed() { } /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") private final java.util.Date timeExpires; /** - * The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string. + * The expiry time of the JavaDownloadToken, displayed as an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * @return the value **/ public java.util.Date getTimeExpires() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecord.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecord.java index 876292bb69..cd3e0cadbb 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecord.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecord.java @@ -149,14 +149,14 @@ public Builder lastUpdatedBy(Principal lastUpdatedBy) { return this; } /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private java.util.Date timeAccepted; /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @param timeAccepted the value to set * @return this builder @@ -167,14 +167,14 @@ public Builder timeAccepted(java.util.Date timeAccepted) { return this; } /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUpdated") private java.util.Date timeLastUpdated; /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @param timeLastUpdated the value to set * @return this builder @@ -416,14 +416,14 @@ public Principal getLastUpdatedBy() { } /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private final java.util.Date timeAccepted; /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @return the value **/ @@ -432,14 +432,14 @@ public java.util.Date getTimeAccepted() { } /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUpdated") private final java.util.Date timeLastUpdated; /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @return the value **/ diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecordSummary.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecordSummary.java index dd990b0a9f..76f105574a 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecordSummary.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/JavaLicenseAcceptanceRecordSummary.java @@ -150,14 +150,14 @@ public Builder lastUpdatedBy(Principal lastUpdatedBy) { return this; } /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private java.util.Date timeAccepted; /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @param timeAccepted the value to set * @return this builder @@ -168,14 +168,14 @@ public Builder timeAccepted(java.util.Date timeAccepted) { return this; } /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUpdated") private java.util.Date timeLastUpdated; /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @param timeLastUpdated the value to set * @return this builder @@ -417,14 +417,14 @@ public Principal getLastUpdatedBy() { } /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private final java.util.Date timeAccepted; /** - * The date and time of license acceptance(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of license acceptance (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @return the value **/ @@ -433,14 +433,14 @@ public java.util.Date getTimeAccepted() { } /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLastUpdated") private final java.util.Date timeLastUpdated; /** - * The date and time of last update(formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). + * The date and time of last update (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). * * @return the value **/ diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/RequestSummarizedJavaDownloadCountsDetails.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/RequestSummarizedJavaDownloadCountsDetails.java index fb51d8b1d6..66651da81b 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/RequestSummarizedJavaDownloadCountsDetails.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/RequestSummarizedJavaDownloadCountsDetails.java @@ -79,13 +79,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Group as property specifying the aggregation type for download counts. + * The property that specifies the aggregation type for the download counts. **/ @com.fasterxml.jackson.annotation.JsonProperty("groupAs") private JavaDownloadCountAggregationType groupAs; /** - * Group as property specifying the aggregation type for download counts. + * The property that specifies the aggregation type for the download counts. * @param groupAs the value to set * @return this builder **/ @@ -315,13 +315,13 @@ public String getCompartmentId() { } /** - * Group as property specifying the aggregation type for download counts. + * The property that specifies the aggregation type for the download counts. **/ @com.fasterxml.jackson.annotation.JsonProperty("groupAs") private final JavaDownloadCountAggregationType groupAs; /** - * Group as property specifying the aggregation type for download counts. + * The property that specifies the aggregation type for the download counts. * @return the value **/ public JavaDownloadCountAggregationType getGroupAs() { diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/SortOrder.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/SortOrder.java index 4b4efc0f2d..783ea8c852 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/SortOrder.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/SortOrder.java @@ -11,7 +11,14 @@ public enum SortOrder { Asc("ASC"), Desc("DESC"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(SortOrder.class); private final String value; private static java.util.Map map; @@ -19,7 +26,9 @@ public enum SortOrder { static { map = new java.util.HashMap<>(); for (SortOrder v : SortOrder.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -37,6 +46,9 @@ public static SortOrder create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid SortOrder: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'SortOrder', returning UnknownEnumValue", + key); + return UnknownEnumValue; } } diff --git a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/UpdateJavaLicenseAcceptanceRecordDetails.java b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/UpdateJavaLicenseAcceptanceRecordDetails.java index 72e60c12ba..165038eff0 100644 --- a/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/UpdateJavaLicenseAcceptanceRecordDetails.java +++ b/bmc-jmsjavadownloads/src/main/java/com/oracle/bmc/jmsjavadownloads/model/UpdateJavaLicenseAcceptanceRecordDetails.java @@ -22,11 +22,15 @@ public final class UpdateJavaLicenseAcceptanceRecordDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"licenseAcceptanceStatus"}) + @java.beans.ConstructorProperties({"licenseAcceptanceStatus", "freeformTags", "definedTags"}) public UpdateJavaLicenseAcceptanceRecordDetails( - LicenseAcceptanceStatus licenseAcceptanceStatus) { + LicenseAcceptanceStatus licenseAcceptanceStatus, + java.util.Map freeformTags, + java.util.Map> definedTags) { super(); this.licenseAcceptanceStatus = licenseAcceptanceStatus; + this.freeformTags = freeformTags; + this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -47,13 +51,55 @@ public Builder licenseAcceptanceStatus(LicenseAcceptanceStatus licenseAcceptance this.__explicitlySet__.add("licenseAcceptanceStatus"); 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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateJavaLicenseAcceptanceRecordDetails build() { UpdateJavaLicenseAcceptanceRecordDetails model = - new UpdateJavaLicenseAcceptanceRecordDetails(this.licenseAcceptanceStatus); + new UpdateJavaLicenseAcceptanceRecordDetails( + this.licenseAcceptanceStatus, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,6 +111,12 @@ public Builder copy(UpdateJavaLicenseAcceptanceRecordDetails model) { if (model.wasPropertyExplicitlySet("licenseAcceptanceStatus")) { this.licenseAcceptanceStatus(model.getLicenseAcceptanceStatus()); } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } return this; } } @@ -94,6 +146,42 @@ public LicenseAcceptanceStatus getLicenseAcceptanceStatus() { return licenseAcceptanceStatus; } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + **/ + @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"}}. (See [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Tagging/Concepts/understandingfreeformtags.htm).) + * + * @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"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. (See [Understanding Free-form Tags](https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm)). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + @Override public String toString() { return this.toString(true); @@ -109,6 +197,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateJavaLicenseAcceptanceRecordDetails("); sb.append("super=").append(super.toString()); sb.append("licenseAcceptanceStatus=").append(String.valueOf(this.licenseAcceptanceStatus)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @@ -125,6 +215,8 @@ public boolean equals(Object o) { UpdateJavaLicenseAcceptanceRecordDetails other = (UpdateJavaLicenseAcceptanceRecordDetails) o; return java.util.Objects.equals(this.licenseAcceptanceStatus, other.licenseAcceptanceStatus) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @@ -137,6 +229,8 @@ public int hashCode() { + (this.licenseAcceptanceStatus == null ? 43 : this.licenseAcceptanceStatus.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-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 7471a5536f..ebc30a1a65 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 9c774d089d..c2e62bb662 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-licensemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index b37308d8fe..a00333d6f5 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-limits @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 25da5bdc11..cf7f6a538a 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 9a77977d49..6ae898905f 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-lockbox @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 26a0a90312..61930e5d38 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-loganalytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 371621d554..6c7b5ed726 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-logging @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 65648f859c..47eef7d9d7 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-loggingingestion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index ab3bb2fcb2..f1d227c275 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-loggingsearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index a4257f39e4..6772e934e5 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-managementagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index bf5e13543b..6ea63abf00 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-managementdashboard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index e4b6fb2821..58b2b25092 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-marketplace @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 1ea1bbffc2..cf6c63a573 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 3b5bd83756..9811d4d44a 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index ef86211361..e92e6097d3 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-mediaservices @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index fcbadc525b..e7e6455774 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-monitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/Alarm.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/Alarm.java index 86a727e738..aead83d12e 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/Alarm.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/Alarm.java @@ -55,6 +55,9 @@ public final class Alarm extends com.oracle.bmc.http.internal.ExplicitlySetBmcMo "overrides", "ruleName", "notificationVersion", + "notificationTitle", + "evaluationSlackDuration", + "alarmSummary", "lifecycleState", "timeCreated", "timeUpdated" @@ -83,6 +86,9 @@ public Alarm( java.util.List overrides, String ruleName, String notificationVersion, + String notificationTitle, + String evaluationSlackDuration, + String alarmSummary, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated) { @@ -110,6 +116,9 @@ public Alarm( this.overrides = overrides; this.ruleName = ruleName; this.notificationVersion = notificationVersion; + this.notificationTitle = notificationTitle; + this.evaluationSlackDuration = evaluationSlackDuration; + this.alarmSummary = alarmSummary; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -282,7 +291,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -305,6 +317,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -317,7 +336,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -340,6 +362,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @param query the value to set * @return this builder @@ -436,7 +465,9 @@ public Builder severity(Severity severity) { return this; } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -447,7 +478,9 @@ public Builder severity(Severity severity) { private String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -672,8 +705,7 @@ public Builder overrides(java.util.List overrides) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -681,8 +713,7 @@ public Builder overrides(java.util.List overrides) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -712,6 +743,82 @@ public Builder notificationVersion(String notificationVersion) { this.__explicitlySet__.add("notificationVersion"); return this; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @param notificationTitle the value to set + * @return this builder + **/ + public Builder notificationTitle(String notificationTitle) { + this.notificationTitle = notificationTitle; + this.__explicitlySet__.add("notificationTitle"); + return this; + } + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @param evaluationSlackDuration the value to set + * @return this builder + **/ + public Builder evaluationSlackDuration(String evaluationSlackDuration) { + this.evaluationSlackDuration = evaluationSlackDuration; + this.__explicitlySet__.add("evaluationSlackDuration"); + return this; + } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } /** * The current lifecycle state of the alarm. *

@@ -808,6 +915,9 @@ public Alarm build() { this.overrides, this.ruleName, this.notificationVersion, + this.notificationTitle, + this.evaluationSlackDuration, + this.alarmSummary, this.lifecycleState, this.timeCreated, this.timeUpdated); @@ -889,6 +999,15 @@ public Builder copy(Alarm model) { if (model.wasPropertyExplicitlySet("notificationVersion")) { this.notificationVersion(model.getNotificationVersion()); } + if (model.wasPropertyExplicitlySet("notificationTitle")) { + this.notificationTitle(model.getNotificationTitle()); + } + if (model.wasPropertyExplicitlySet("evaluationSlackDuration")) { + this.evaluationSlackDuration(model.getEvaluationSlackDuration()); + } + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -1064,7 +1183,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -1087,6 +1209,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -1099,7 +1228,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -1122,6 +1254,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @return the value **/ @@ -1263,7 +1402,9 @@ public Severity getSeverity() { } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1274,7 +1415,9 @@ public Severity getSeverity() { private final String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1529,8 +1672,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -1538,8 +1680,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -1565,6 +1706,76 @@ public String getNotificationVersion() { return notificationVersion; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private final String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @return the value + **/ + public String getNotificationTitle() { + return notificationTitle; + } + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private final String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @return the value + **/ + public String getEvaluationSlackDuration() { + return evaluationSlackDuration; + } + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + /** * The current lifecycle state of the alarm. *

@@ -1717,6 +1928,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", overrides=").append(String.valueOf(this.overrides)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", notificationVersion=").append(String.valueOf(this.notificationVersion)); + sb.append(", notificationTitle=").append(String.valueOf(this.notificationTitle)); + sb.append(", evaluationSlackDuration=") + .append(String.valueOf(this.evaluationSlackDuration)); + sb.append(", alarmSummary=").append(String.valueOf(this.alarmSummary)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -1761,6 +1976,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.overrides, other.overrides) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.notificationVersion, other.notificationVersion) + && java.util.Objects.equals(this.notificationTitle, other.notificationTitle) + && java.util.Objects.equals( + this.evaluationSlackDuration, other.evaluationSlackDuration) + && java.util.Objects.equals(this.alarmSummary, other.alarmSummary) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -1822,6 +2041,15 @@ public int hashCode() { + (this.notificationVersion == null ? 43 : this.notificationVersion.hashCode()); + result = + (result * PRIME) + + (this.notificationTitle == null ? 43 : this.notificationTitle.hashCode()); + result = + (result * PRIME) + + (this.evaluationSlackDuration == null + ? 43 + : this.evaluationSlackDuration.hashCode()); + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmDimensionStatesEntry.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmDimensionStatesEntry.java index 5a5b3146bd..80459ac606 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmDimensionStatesEntry.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmDimensionStatesEntry.java @@ -23,13 +23,21 @@ public final class AlarmDimensionStatesEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"dimensions", "status", "ruleName", "timestamp"}) + @java.beans.ConstructorProperties({ + "alarmSummary", + "dimensions", + "status", + "ruleName", + "timestamp" + }) public AlarmDimensionStatesEntry( + String alarmSummary, java.util.Map dimensions, Status status, String ruleName, java.util.Date timestamp) { super(); + this.alarmSummary = alarmSummary; this.dimensions = dimensions; this.status = status; this.ruleName = ruleName; @@ -38,6 +46,34 @@ public AlarmDimensionStatesEntry( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } /** * Indicator of the metric stream associated with the alarm state entry. Includes one or more dimension key-value pairs. * @@ -80,8 +116,7 @@ public Builder status(Status status) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -89,8 +124,7 @@ public Builder status(Status status) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -129,7 +163,11 @@ public Builder timestamp(java.util.Date timestamp) { public AlarmDimensionStatesEntry build() { AlarmDimensionStatesEntry model = new AlarmDimensionStatesEntry( - this.dimensions, this.status, this.ruleName, this.timestamp); + this.alarmSummary, + this.dimensions, + this.status, + this.ruleName, + this.timestamp); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -138,6 +176,9 @@ public AlarmDimensionStatesEntry build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AlarmDimensionStatesEntry model) { + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } if (model.wasPropertyExplicitlySet("dimensions")) { this.dimensions(model.getDimensions()); } @@ -165,6 +206,32 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + /** * Indicator of the metric stream associated with the alarm state entry. Includes one or more dimension key-value pairs. * @@ -253,8 +320,7 @@ public Status getStatus() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -262,8 +328,7 @@ public Status getStatus() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -305,7 +370,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("AlarmDimensionStatesEntry("); sb.append("super=").append(super.toString()); - sb.append("dimensions=").append(String.valueOf(this.dimensions)); + sb.append("alarmSummary=").append(String.valueOf(this.alarmSummary)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", timestamp=").append(String.valueOf(this.timestamp)); @@ -323,7 +389,8 @@ public boolean equals(Object o) { } AlarmDimensionStatesEntry other = (AlarmDimensionStatesEntry) o; - return java.util.Objects.equals(this.dimensions, other.dimensions) + return java.util.Objects.equals(this.alarmSummary, other.alarmSummary) + && java.util.Objects.equals(this.dimensions, other.dimensions) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.timestamp, other.timestamp) @@ -334,6 +401,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + (this.ruleName == null ? 43 : this.ruleName.hashCode()); diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmHistoryEntry.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmHistoryEntry.java index b254a6f0d8..8cb2d2eba6 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmHistoryEntry.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmHistoryEntry.java @@ -23,10 +23,19 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class AlarmHistoryEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"summary", "timestamp", "timestampTriggered"}) + @java.beans.ConstructorProperties({ + "alarmSummary", + "summary", + "timestamp", + "timestampTriggered" + }) public AlarmHistoryEntry( - String summary, java.util.Date timestamp, java.util.Date timestampTriggered) { + String alarmSummary, + String summary, + java.util.Date timestamp, + java.util.Date timestampTriggered) { super(); + this.alarmSummary = alarmSummary; this.summary = summary; this.timestamp = timestamp; this.timestampTriggered = timestampTriggered; @@ -34,6 +43,34 @@ public AlarmHistoryEntry( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } /** * Description for this alarm history entry. *

@@ -112,7 +149,11 @@ public Builder timestampTriggered(java.util.Date timestampTriggered) { public AlarmHistoryEntry build() { AlarmHistoryEntry model = - new AlarmHistoryEntry(this.summary, this.timestamp, this.timestampTriggered); + new AlarmHistoryEntry( + this.alarmSummary, + this.summary, + this.timestamp, + this.timestampTriggered); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -121,6 +162,9 @@ public AlarmHistoryEntry build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AlarmHistoryEntry model) { + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } if (model.wasPropertyExplicitlySet("summary")) { this.summary(model.getSummary()); } @@ -145,6 +189,32 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + /** * Description for this alarm history entry. *

@@ -225,7 +295,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("AlarmHistoryEntry("); sb.append("super=").append(super.toString()); - sb.append("summary=").append(String.valueOf(this.summary)); + sb.append("alarmSummary=").append(String.valueOf(this.alarmSummary)); + sb.append(", summary=").append(String.valueOf(this.summary)); sb.append(", timestamp=").append(String.valueOf(this.timestamp)); sb.append(", timestampTriggered=").append(String.valueOf(this.timestampTriggered)); sb.append(")"); @@ -242,7 +313,8 @@ public boolean equals(Object o) { } AlarmHistoryEntry other = (AlarmHistoryEntry) o; - return java.util.Objects.equals(this.summary, other.summary) + return java.util.Objects.equals(this.alarmSummary, other.alarmSummary) + && java.util.Objects.equals(this.summary, other.summary) && java.util.Objects.equals(this.timestamp, other.timestamp) && java.util.Objects.equals(this.timestampTriggered, other.timestampTriggered) && super.equals(other); @@ -252,6 +324,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); result = diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmOverride.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmOverride.java index d7ebd42392..01ebb1aace 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmOverride.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmOverride.java @@ -110,7 +110,9 @@ public Builder severity(Alarm.Severity severity) { return this; } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -121,7 +123,9 @@ public Builder severity(Alarm.Severity severity) { private String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -160,7 +164,10 @@ public Builder ruleName(String ruleName) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -183,6 +190,13 @@ public Builder ruleName(String ruleName) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -195,7 +209,10 @@ public Builder ruleName(String ruleName) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -218,6 +235,13 @@ public Builder ruleName(String ruleName) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @param query the value to set * @return this builder @@ -342,7 +366,9 @@ public Alarm.Severity getSeverity() { } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -353,7 +379,9 @@ public Alarm.Severity getSeverity() { private final String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -388,7 +416,10 @@ public String getRuleName() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -411,6 +442,13 @@ public String getRuleName() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -423,7 +461,10 @@ public String getRuleName() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -446,6 +487,13 @@ public String getRuleName() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @return the value **/ diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmStatusSummary.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmStatusSummary.java index 40b5573aaa..7cafdd97fc 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmStatusSummary.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmStatusSummary.java @@ -39,6 +39,7 @@ public final class AlarmStatusSummary extends com.oracle.bmc.http.internal.Expli "severity", "ruleName", "timestampTriggered", + "alarmSummary", "status", "suppression" }) @@ -48,6 +49,7 @@ public AlarmStatusSummary( Severity severity, String ruleName, java.util.Date timestampTriggered, + String alarmSummary, Status status, Suppression suppression) { super(); @@ -56,6 +58,7 @@ public AlarmStatusSummary( this.severity = severity; this.ruleName = ruleName; this.timestampTriggered = timestampTriggered; + this.alarmSummary = alarmSummary; this.status = status; this.suppression = suppression; } @@ -126,8 +129,7 @@ public Builder severity(Severity severity) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -135,8 +137,7 @@ public Builder severity(Severity severity) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -170,6 +171,34 @@ public Builder timestampTriggered(java.util.Date timestampTriggered) { this.__explicitlySet__.add("timestampTriggered"); return this; } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } /** * The status of this alarm. * Status is collective, across all metric streams in the alarm. @@ -224,6 +253,7 @@ public AlarmStatusSummary build() { this.severity, this.ruleName, this.timestampTriggered, + this.alarmSummary, this.status, this.suppression); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -249,6 +279,9 @@ public Builder copy(AlarmStatusSummary model) { if (model.wasPropertyExplicitlySet("timestampTriggered")) { this.timestampTriggered(model.getTimestampTriggered()); } + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -381,8 +414,7 @@ public Severity getSeverity() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -390,8 +422,7 @@ public Severity getSeverity() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -421,6 +452,32 @@ public java.util.Date getTimestampTriggered() { return timestampTriggered; } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + /** * The status of this alarm. * Status is collective, across all metric streams in the alarm. @@ -530,6 +587,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", severity=").append(String.valueOf(this.severity)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", timestampTriggered=").append(String.valueOf(this.timestampTriggered)); + sb.append(", alarmSummary=").append(String.valueOf(this.alarmSummary)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", suppression=").append(String.valueOf(this.suppression)); sb.append(")"); @@ -551,6 +609,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.severity, other.severity) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.timestampTriggered, other.timestampTriggered) + && java.util.Objects.equals(this.alarmSummary, other.alarmSummary) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.suppression, other.suppression) && super.equals(other); @@ -569,6 +628,7 @@ public int hashCode() { + (this.timestampTriggered == null ? 43 : this.timestampTriggered.hashCode()); + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + (this.suppression == null ? 43 : this.suppression.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmSummary.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmSummary.java index d3c098c5b9..3b3075b7d9 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmSummary.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/AlarmSummary.java @@ -48,7 +48,11 @@ public final class AlarmSummary extends com.oracle.bmc.http.internal.ExplicitlyS "lifecycleState", "overrides", "ruleName", - "notificationVersion" + "notificationVersion", + "notificationTitle", + "evaluationSlackDuration", + "alarmSummary", + "resourceGroup" }) public AlarmSummary( String id, @@ -67,7 +71,11 @@ public AlarmSummary( Alarm.LifecycleState lifecycleState, java.util.List overrides, String ruleName, - String notificationVersion) { + String notificationVersion, + String notificationTitle, + String evaluationSlackDuration, + String alarmSummary, + String resourceGroup) { super(); this.id = id; this.displayName = displayName; @@ -86,6 +94,10 @@ public AlarmSummary( this.overrides = overrides; this.ruleName = ruleName; this.notificationVersion = notificationVersion; + this.notificationTitle = notificationTitle; + this.evaluationSlackDuration = evaluationSlackDuration; + this.alarmSummary = alarmSummary; + this.resourceGroup = resourceGroup; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -469,8 +481,7 @@ public Builder overrides(java.util.List overrides) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -478,8 +489,7 @@ public Builder overrides(java.util.List overrides) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -509,6 +519,106 @@ public Builder notificationVersion(String notificationVersion) { this.__explicitlySet__.add("notificationVersion"); return this; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @param notificationTitle the value to set + * @return this builder + **/ + public Builder notificationTitle(String notificationTitle) { + this.notificationTitle = notificationTitle; + this.__explicitlySet__.add("notificationTitle"); + return this; + } + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @param evaluationSlackDuration the value to set + * @return this builder + **/ + public Builder evaluationSlackDuration(String evaluationSlackDuration) { + this.evaluationSlackDuration = evaluationSlackDuration; + this.__explicitlySet__.add("evaluationSlackDuration"); + return this; + } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } + /** + * Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. + * A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + *

+ * Example: {@code frontend-fleet} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroup") + private String resourceGroup; + + /** + * Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. + * A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + *

+ * Example: {@code frontend-fleet} + * + * @param resourceGroup the value to set + * @return this builder + **/ + public Builder resourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + this.__explicitlySet__.add("resourceGroup"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -532,7 +642,11 @@ public AlarmSummary build() { this.lifecycleState, this.overrides, this.ruleName, - this.notificationVersion); + this.notificationVersion, + this.notificationTitle, + this.evaluationSlackDuration, + this.alarmSummary, + this.resourceGroup); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -593,6 +707,18 @@ public Builder copy(AlarmSummary model) { if (model.wasPropertyExplicitlySet("notificationVersion")) { this.notificationVersion(model.getNotificationVersion()); } + if (model.wasPropertyExplicitlySet("notificationTitle")) { + this.notificationTitle(model.getNotificationTitle()); + } + if (model.wasPropertyExplicitlySet("evaluationSlackDuration")) { + this.evaluationSlackDuration(model.getEvaluationSlackDuration()); + } + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } + if (model.wasPropertyExplicitlySet("resourceGroup")) { + this.resourceGroup(model.getResourceGroup()); + } return this; } } @@ -1007,8 +1133,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -1016,8 +1141,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -1043,6 +1167,98 @@ public String getNotificationVersion() { return notificationVersion; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private final String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @return the value + **/ + public String getNotificationTitle() { + return notificationTitle; + } + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private final String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @return the value + **/ + public String getEvaluationSlackDuration() { + return evaluationSlackDuration; + } + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + + /** + * Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. + * A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + *

+ * Example: {@code frontend-fleet} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroup") + private final String resourceGroup; + + /** + * Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. + * A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + *

+ * Example: {@code frontend-fleet} + * + * @return the value + **/ + public String getResourceGroup() { + return resourceGroup; + } + @Override public String toString() { return this.toString(true); @@ -1075,6 +1291,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", overrides=").append(String.valueOf(this.overrides)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", notificationVersion=").append(String.valueOf(this.notificationVersion)); + sb.append(", notificationTitle=").append(String.valueOf(this.notificationTitle)); + sb.append(", evaluationSlackDuration=") + .append(String.valueOf(this.evaluationSlackDuration)); + sb.append(", alarmSummary=").append(String.valueOf(this.alarmSummary)); + sb.append(", resourceGroup=").append(String.valueOf(this.resourceGroup)); sb.append(")"); return sb.toString(); } @@ -1108,6 +1329,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.overrides, other.overrides) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.notificationVersion, other.notificationVersion) + && java.util.Objects.equals(this.notificationTitle, other.notificationTitle) + && java.util.Objects.equals( + this.evaluationSlackDuration, other.evaluationSlackDuration) + && java.util.Objects.equals(this.alarmSummary, other.alarmSummary) + && java.util.Objects.equals(this.resourceGroup, other.resourceGroup) && super.equals(other); } @@ -1148,6 +1374,18 @@ public int hashCode() { + (this.notificationVersion == null ? 43 : this.notificationVersion.hashCode()); + result = + (result * PRIME) + + (this.notificationTitle == null ? 43 : this.notificationTitle.hashCode()); + result = + (result * PRIME) + + (this.evaluationSlackDuration == null + ? 43 + : this.evaluationSlackDuration.hashCode()); + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); + result = + (result * PRIME) + + (this.resourceGroup == null ? 43 : this.resourceGroup.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/CreateAlarmDetails.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/CreateAlarmDetails.java index 6ec672383d..b8d8d1753f 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/CreateAlarmDetails.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/CreateAlarmDetails.java @@ -44,7 +44,10 @@ public final class CreateAlarmDetails extends com.oracle.bmc.http.internal.Expli "definedTags", "overrides", "ruleName", - "notificationVersion" + "notificationVersion", + "notificationTitle", + "evaluationSlackDuration", + "alarmSummary" }) public CreateAlarmDetails( String displayName, @@ -68,7 +71,10 @@ public CreateAlarmDetails( java.util.Map> definedTags, java.util.List overrides, String ruleName, - String notificationVersion) { + String notificationVersion, + String notificationTitle, + String evaluationSlackDuration, + String alarmSummary) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -92,6 +98,9 @@ public CreateAlarmDetails( this.overrides = overrides; this.ruleName = ruleName; this.notificationVersion = notificationVersion; + this.notificationTitle = notificationTitle; + this.evaluationSlackDuration = evaluationSlackDuration; + this.alarmSummary = alarmSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -247,7 +256,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -270,6 +282,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -282,7 +301,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -305,6 +327,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @param query the value to set * @return this builder @@ -401,7 +430,9 @@ public Builder severity(Alarm.Severity severity) { return this; } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -412,7 +443,9 @@ public Builder severity(Alarm.Severity severity) { private String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -639,8 +672,7 @@ public Builder overrides(java.util.List overrides) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -648,8 +680,7 @@ public Builder overrides(java.util.List overrides) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -679,6 +710,82 @@ public Builder notificationVersion(String notificationVersion) { this.__explicitlySet__.add("notificationVersion"); return this; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @param notificationTitle the value to set + * @return this builder + **/ + public Builder notificationTitle(String notificationTitle) { + this.notificationTitle = notificationTitle; + this.__explicitlySet__.add("notificationTitle"); + return this; + } + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @param evaluationSlackDuration the value to set + * @return this builder + **/ + public Builder evaluationSlackDuration(String evaluationSlackDuration) { + this.evaluationSlackDuration = evaluationSlackDuration; + this.__explicitlySet__.add("evaluationSlackDuration"); + return this; + } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -707,7 +814,10 @@ public CreateAlarmDetails build() { this.definedTags, this.overrides, this.ruleName, - this.notificationVersion); + this.notificationVersion, + this.notificationTitle, + this.evaluationSlackDuration, + this.alarmSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -783,6 +893,15 @@ public Builder copy(CreateAlarmDetails model) { if (model.wasPropertyExplicitlySet("notificationVersion")) { this.notificationVersion(model.getNotificationVersion()); } + if (model.wasPropertyExplicitlySet("notificationTitle")) { + this.notificationTitle(model.getNotificationTitle()); + } + if (model.wasPropertyExplicitlySet("evaluationSlackDuration")) { + this.evaluationSlackDuration(model.getEvaluationSlackDuration()); + } + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } return this; } } @@ -937,7 +1056,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -960,6 +1082,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -972,7 +1101,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -995,6 +1127,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @return the value **/ @@ -1083,7 +1222,9 @@ public Alarm.Severity getSeverity() { } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1094,7 +1235,9 @@ public Alarm.Severity getSeverity() { private final String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1338,8 +1481,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -1347,8 +1489,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -1374,6 +1515,76 @@ public String getNotificationVersion() { return notificationVersion; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private final String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @return the value + **/ + public String getNotificationTitle() { + return notificationTitle; + } + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private final String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @return the value + **/ + public String getEvaluationSlackDuration() { + return evaluationSlackDuration; + } + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + @Override public String toString() { return this.toString(true); @@ -1413,6 +1624,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", overrides=").append(String.valueOf(this.overrides)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", notificationVersion=").append(String.valueOf(this.notificationVersion)); + sb.append(", notificationTitle=").append(String.valueOf(this.notificationTitle)); + sb.append(", evaluationSlackDuration=") + .append(String.valueOf(this.evaluationSlackDuration)); + sb.append(", alarmSummary=").append(String.valueOf(this.alarmSummary)); sb.append(")"); return sb.toString(); } @@ -1453,6 +1668,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.overrides, other.overrides) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.notificationVersion, other.notificationVersion) + && java.util.Objects.equals(this.notificationTitle, other.notificationTitle) + && java.util.Objects.equals( + this.evaluationSlackDuration, other.evaluationSlackDuration) + && java.util.Objects.equals(this.alarmSummary, other.alarmSummary) && super.equals(other); } @@ -1510,6 +1729,15 @@ public int hashCode() { + (this.notificationVersion == null ? 43 : this.notificationVersion.hashCode()); + result = + (result * PRIME) + + (this.notificationTitle == null ? 43 : this.notificationTitle.hashCode()); + result = + (result * PRIME) + + (this.evaluationSlackDuration == null + ? 43 + : this.evaluationSlackDuration.hashCode()); + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/UpdateAlarmDetails.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/UpdateAlarmDetails.java index 5d3c0f4f16..7f658dbc69 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/UpdateAlarmDetails.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/model/UpdateAlarmDetails.java @@ -44,7 +44,10 @@ public final class UpdateAlarmDetails extends com.oracle.bmc.http.internal.Expli "definedTags", "overrides", "ruleName", - "notificationVersion" + "notificationVersion", + "notificationTitle", + "evaluationSlackDuration", + "alarmSummary" }) public UpdateAlarmDetails( String displayName, @@ -68,7 +71,10 @@ public UpdateAlarmDetails( java.util.Map> definedTags, java.util.List overrides, String ruleName, - String notificationVersion) { + String notificationVersion, + String notificationTitle, + String evaluationSlackDuration, + String alarmSummary) { super(); this.displayName = displayName; this.compartmentId = compartmentId; @@ -92,6 +98,9 @@ public UpdateAlarmDetails( this.overrides = overrides; this.ruleName = ruleName; this.notificationVersion = notificationVersion; + this.notificationTitle = notificationTitle; + this.evaluationSlackDuration = evaluationSlackDuration; + this.alarmSummary = alarmSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -247,7 +256,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -270,6 +282,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -282,7 +301,10 @@ public Builder resourceGroup(String resourceGroup) { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -305,6 +327,13 @@ public Builder resourceGroup(String resourceGroup) { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @param query the value to set * @return this builder @@ -401,7 +430,9 @@ public Builder severity(Alarm.Severity severity) { return this; } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -412,7 +443,9 @@ public Builder severity(Alarm.Severity severity) { private String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -637,8 +670,7 @@ public Builder overrides(java.util.List overrides) { } /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -646,8 +678,7 @@ public Builder overrides(java.util.List overrides) { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @param ruleName the value to set * @return this builder @@ -677,6 +708,82 @@ public Builder notificationVersion(String notificationVersion) { this.__explicitlySet__.add("notificationVersion"); return this; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @param notificationTitle the value to set + * @return this builder + **/ + public Builder notificationTitle(String notificationTitle) { + this.notificationTitle = notificationTitle; + this.__explicitlySet__.add("notificationTitle"); + return this; + } + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @param evaluationSlackDuration the value to set + * @return this builder + **/ + public Builder evaluationSlackDuration(String evaluationSlackDuration) { + this.evaluationSlackDuration = evaluationSlackDuration; + this.__explicitlySet__.add("evaluationSlackDuration"); + return this; + } + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @param alarmSummary the value to set + * @return this builder + **/ + public Builder alarmSummary(String alarmSummary) { + this.alarmSummary = alarmSummary; + this.__explicitlySet__.add("alarmSummary"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -705,7 +812,10 @@ public UpdateAlarmDetails build() { this.definedTags, this.overrides, this.ruleName, - this.notificationVersion); + this.notificationVersion, + this.notificationTitle, + this.evaluationSlackDuration, + this.alarmSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -781,6 +891,15 @@ public Builder copy(UpdateAlarmDetails model) { if (model.wasPropertyExplicitlySet("notificationVersion")) { this.notificationVersion(model.getNotificationVersion()); } + if (model.wasPropertyExplicitlySet("notificationTitle")) { + this.notificationTitle(model.getNotificationTitle()); + } + if (model.wasPropertyExplicitlySet("evaluationSlackDuration")) { + this.evaluationSlackDuration(model.getEvaluationSlackDuration()); + } + if (model.wasPropertyExplicitlySet("alarmSummary")) { + this.alarmSummary(model.getAlarmSummary()); + } return this; } } @@ -935,7 +1054,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -958,6 +1080,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * **/ @com.fasterxml.jackson.annotation.JsonProperty("query") @@ -970,7 +1099,10 @@ public String getResourceGroup() { * rule condition has been met. The query must specify a metric, statistic, interval, and trigger * rule (threshold or absence). Supported values for interval depend on the specified time range. More * interval values are supported for smaller time ranges. You can optionally - * specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}. + * specify dimensions and grouping functions. + * Also, you can customize the + * [absence detection period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-edit-alarm-query-absence-detection-period.htm). + * Supported grouping functions: {@code grouping()}, {@code groupBy()}. * For information about writing MQL expressions, see * [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). * For details about MQL, see @@ -993,6 +1125,13 @@ public String getResourceGroup() { * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() *

* ----- + * Example of absence alarm with custom absence detection period of 20 hours: + *

+ * ----- + * + * CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent(20h) + * + * ----- * * @return the value **/ @@ -1081,7 +1220,9 @@ public Alarm.Severity getSeverity() { } /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1092,7 +1233,9 @@ public Alarm.Severity getSeverity() { private final String body; /** - * The human-readable content of the delivered alarm notification. Oracle recommends providing guidance + * The human-readable content of the delivered alarm notification. + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * Oracle recommends providing guidance * to operators for resolving the alarm condition. Consider adding links to standard runbook * practices. Avoid entering confidential information. *

@@ -1334,8 +1477,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * **/ @com.fasterxml.jackson.annotation.JsonProperty("ruleName") @@ -1343,8 +1485,7 @@ public java.util.List getOverrides() { /** * Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. - * A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. - * Minimum number of characters: 3. Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. + * Default value is {@code BASE}. For information about alarm overrides, see {@link #alarmOverride(AlarmOverrideRequest) alarmOverride}. * * @return the value **/ @@ -1370,6 +1511,76 @@ public String getNotificationVersion() { return notificationVersion; } + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTitle") + private final String notificationTitle; + + /** + * Customizable notification title ({@code title} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The notification title appears as the subject line in a formatted email message and as the title in a Slack message. + * + * @return the value + **/ + public String getNotificationTitle() { + return notificationTitle; + } + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("evaluationSlackDuration") + private final String evaluationSlackDuration; + + /** + * Customizable slack period to wait for metric ingestion before evaluating the alarm. + * Specify a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H} + * for one hour). Minimum: PT3M. Maximum: PT2H. Default: PT3M. + * For more information about the slack period, see + * [About the Internal Reset Period](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#reset). + * + * @return the value + **/ + public String getEvaluationSlackDuration() { + return evaluationSlackDuration; + } + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("alarmSummary") + private final String alarmSummary; + + /** + * Customizable alarm summary ({@code alarmSummary} [alarm message parameter](https://docs.cloud.oracle.com/iaas/Content/Monitoring/alarm-message-format.htm)). + * Optionally include [dynamic variables](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/update-alarm-dynamic-variables.htm). + * The alarm summary appears within the body of the alarm message and in responses to + * {@link #listAlarmsStatus(ListAlarmsStatusRequest) listAlarmsStatus} + * {@link #getAlarmHistory(GetAlarmHistoryRequest) getAlarmHistory} and + * {@link #retrieveDimensionStates(RetrieveDimensionStatesRequest) retrieveDimensionStates}. + * + * @return the value + **/ + public String getAlarmSummary() { + return alarmSummary; + } + @Override public String toString() { return this.toString(true); @@ -1409,6 +1620,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", overrides=").append(String.valueOf(this.overrides)); sb.append(", ruleName=").append(String.valueOf(this.ruleName)); sb.append(", notificationVersion=").append(String.valueOf(this.notificationVersion)); + sb.append(", notificationTitle=").append(String.valueOf(this.notificationTitle)); + sb.append(", evaluationSlackDuration=") + .append(String.valueOf(this.evaluationSlackDuration)); + sb.append(", alarmSummary=").append(String.valueOf(this.alarmSummary)); sb.append(")"); return sb.toString(); } @@ -1449,6 +1664,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.overrides, other.overrides) && java.util.Objects.equals(this.ruleName, other.ruleName) && java.util.Objects.equals(this.notificationVersion, other.notificationVersion) + && java.util.Objects.equals(this.notificationTitle, other.notificationTitle) + && java.util.Objects.equals( + this.evaluationSlackDuration, other.evaluationSlackDuration) + && java.util.Objects.equals(this.alarmSummary, other.alarmSummary) && super.equals(other); } @@ -1506,6 +1725,15 @@ public int hashCode() { + (this.notificationVersion == null ? 43 : this.notificationVersion.hashCode()); + result = + (result * PRIME) + + (this.notificationTitle == null ? 43 : this.notificationTitle.hashCode()); + result = + (result * PRIME) + + (this.evaluationSlackDuration == null + ? 43 + : this.evaluationSlackDuration.hashCode()); + result = (result * PRIME) + (this.alarmSummary == null ? 43 : this.alarmSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 518ba312a5..4be18697ef 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-mysql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.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 fbd50a82c4..ec1633aaed 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 @@ -73,6 +73,19 @@ 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 1132cde480..e0def7ed5a 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,21 @@ 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 6fb29b8336..d218411fc5 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 @@ -511,6 +511,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future copyBackup( + CopyBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async copyBackup"); + final CopyBackupRequest interceptedRequest = CopyBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CopyBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbBackups", + "CopyBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/CopyBackup"); + final java.util.function.Function + transformer = + CopyBackupConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CopyBackupRequest, CopyBackupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCopyBackupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CopyBackupRequest, CopyBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @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 6f3d766354..7b0c83ab0a 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 @@ -590,6 +590,45 @@ public ChangeBackupCompartmentResponse changeBackupCompartment( }); } + @Override + public CopyBackupResponse copyBackup(CopyBackupRequest request) { + LOG.trace("Called copyBackup"); + final CopyBackupRequest interceptedRequest = CopyBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CopyBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DbBackups", + "CopyBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/CopyBackup"); + java.util.function.Function transformer = + CopyBackupConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCopyBackupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateBackupResponse createBackup(CreateBackupRequest request) { LOG.trace("Called createBackup"); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CopyBackupConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CopyBackupConverter.java new file mode 100644 index 0000000000..611d238a2d --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CopyBackupConverter.java @@ -0,0 +1,153 @@ +/** + * 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CopyBackupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CopyBackupConverter.class); + + public static com.oracle.bmc.mysql.requests.CopyBackupRequest interceptRequest( + com.oracle.bmc.mysql.requests.CopyBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.mysql.requests.CopyBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCopyBackupDetails(), "copyBackupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190415") + .path("backups") + .path("actions") + .path("copy"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.mysql.responses.CopyBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.mysql.responses.CopyBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.CopyBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.CopyBackupResponse>() { + @Override + public com.oracle.bmc.mysql.responses.CopyBackupResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.mysql.responses.CopyBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model.Backup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model.Backup.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model.Backup.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model.Backup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.mysql.responses.CopyBackupResponse.Builder builder = + com.oracle.bmc.mysql.responses.CopyBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.backup(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses.CopyBackupResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} 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 29980923a4..ec27a9c59c 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.internal.ExplicitlySetBmcM "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 = "") @@ -402,6 +411,60 @@ 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(); @@ -427,7 +490,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); } @@ -493,6 +559,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; } } @@ -930,6 +1005,54 @@ 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); @@ -963,6 +1086,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(); } @@ -996,6 +1123,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); } @@ -1038,6 +1170,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 df033a6a0e..d8bbe3c16c 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 @@ -41,7 +41,11 @@ public final class BackupSummary extends com.oracle.bmc.http.internal.Explicitly "mysqlVersion", "shapeName", "freeformTags", - "definedTags" + "definedTags", + "immediateSourceBackupId", + "originalSourceBackupId", + "timeCopyCreated", + "dbSystemSnapshotSummary" }) public BackupSummary( String id, @@ -59,7 +63,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; @@ -77,6 +85,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 = "") @@ -346,6 +358,69 @@ 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(); @@ -368,7 +443,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); } @@ -425,6 +504,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; } } @@ -672,6 +763,61 @@ 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); @@ -702,6 +848,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(); } @@ -732,6 +884,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); } @@ -767,6 +926,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 0000000000..44a4c6176e --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CopyBackupDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CopyBackupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CopyBackupDetails extends com.oracle.bmc.http.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 a17504ba0b..e9fdc023be 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 @@ -46,7 +46,8 @@ public final class DbSystemSnapshot extends com.oracle.bmc.http.internal.Explici "definedTags", "crashRecovery", "databaseManagement", - "secureConnections" + "secureConnections", + "region" }) public DbSystemSnapshot( String id, @@ -74,7 +75,8 @@ public DbSystemSnapshot( java.util.Map> definedTags, CrashRecoveryStatus crashRecovery, DatabaseManagementStatus databaseManagement, - SecureConnectionDetails secureConnections) { + SecureConnectionDetails secureConnections, + String region) { super(); this.id = id; this.displayName = displayName; @@ -102,6 +104,7 @@ public DbSystemSnapshot( this.crashRecovery = crashRecovery; this.databaseManagement = databaseManagement; this.secureConnections = secureConnections; + this.region = region; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -549,6 +552,26 @@ 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(); @@ -581,7 +604,8 @@ public DbSystemSnapshot build() { this.definedTags, this.crashRecovery, this.databaseManagement, - this.secureConnections); + this.secureConnections, + this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -668,6 +692,9 @@ public Builder copy(DbSystemSnapshot model) { if (model.wasPropertyExplicitlySet("secureConnections")) { this.secureConnections(model.getSecureConnections()); } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } return this; } } @@ -1073,6 +1100,24 @@ 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); @@ -1113,6 +1158,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(); } @@ -1153,6 +1199,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); } @@ -1214,6 +1261,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 0000000000..9d8ab3cf48 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshotSummary.java @@ -0,0 +1,220 @@ +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemSnapshotSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DbSystemSnapshotSummary + extends com.oracle.bmc.http.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 d843de33ee..1bf9307186 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 @@ -30,6 +30,7 @@ public enum WorkRequestOperationType { ResumeChannel("RESUME_CHANNEL"), ResetChannel("RESET_CHANNEL"), DeleteChannel("DELETE_CHANNEL"), + CopyBackup("COPY_BACKUP"), CreateBackup("CREATE_BACKUP"), DeleteBackup("DELETE_BACKUP"), diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java new file mode 100644 index 0000000000..2b75684574 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java @@ -0,0 +1,342 @@ +/** + * 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.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use CopyBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CopyBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details required to copy a given DB system backup to another region. + */ + private com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails; + + /** + * Details required to copy a given DB system backup to another region. + */ + public com.oracle.bmc.mysql.model.CopyBackupDetails getCopyBackupDetails() { + return copyBackupDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.CopyBackupDetails getBody$() { + return copyBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CopyBackupRequest, com.oracle.bmc.mysql.model.CopyBackupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details required to copy a given DB system backup to another region. + */ + private com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails = null; + + /** + * Details required to copy a given DB system backup to another region. + * @param copyBackupDetails the value to set + * @return this builder instance + */ + public Builder copyBackupDetails( + com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails) { + this.copyBackupDetails = copyBackupDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CopyBackupRequest o) { + copyBackupDetails(o.getCopyBackupDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CopyBackupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CopyBackupRequest + */ + public CopyBackupRequest build() { + CopyBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.mysql.model.CopyBackupDetails body) { + copyBackupDetails(body); + return this; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CopyBackupRequest + */ + public CopyBackupRequest buildWithoutInvocationCallback() { + CopyBackupRequest request = new CopyBackupRequest(); + request.copyBackupDetails = copyBackupDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CopyBackupRequest(copyBackupDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .copyBackupDetails(copyBackupDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CopyBackupRequest)) { + return false; + } + + CopyBackupRequest other = (CopyBackupRequest) o; + return super.equals(o) + && 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); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (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()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java new file mode 100644 index 0000000000..d0431cd2c6 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java @@ -0,0 +1,251 @@ +/** + * 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.responses; + +import com.oracle.bmc.mysql.model.*; + +@javax.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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The returned Backup instance. + */ + private com.oracle.bmc.mysql.model.Backup backup; + + /** + * The returned Backup instance. + * @return the value + */ + public com.oracle.bmc.mysql.model.Backup getBackup() { + return backup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "backup" + }) + private CopyBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The returned Backup instance. + */ + private com.oracle.bmc.mysql.model.Backup backup; + + /** + * The returned 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 + */ + 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; + } + + /** + * Build the response object. + * @return the response object + */ + public CopyBackupResponse build() { + return new CopyBackupResponse( + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, backup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",backup=").append(String.valueOf(backup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CopyBackupResponse)) { + return false; + } + + 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.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-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index c5f920d851..b686d1dea8 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-networkfirewall @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 34840dd7fc..c31fc26560 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 0987a5921c..f333a14eed 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-nosql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index cd4b69dd97..46e26a72f3 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 2.72.0 + 2.73.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.72.0 + 2.73.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 2ef5703e41..17a042e885 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 2.72.0 + 2.73.0 ../pom.xml @@ -20,12 +20,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.72.0 + 2.73.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 0fdf9a310f..d381eb8ffb 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 2.72.0 + 2.73.0 ../pom.xml @@ -20,7 +20,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index f22707530b..2907835f5f 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index ca60d36ce9..b7a1941afc 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-oce @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 648a93d1ff..dcbce607d5 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 71e30b0a7f..83b2e8d3aa 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-ocvp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index d45bb815d9..71400478bb 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-oda @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index cae6c36df3..910c5969a3 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-onesubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index aa33133495..464ae6f521 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-ons @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 45f8a4afec..0db5c1a158 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-opa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 5b603ab891..c7a17a4838 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-opensearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 8856490f33..09624d0cfc 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 2fca21e668..faa79be400 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-opsi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index a9409bb7c6..26cb87b38f 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-optimizer @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 2a06c1b7a3..dd4ff4698f 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osmanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index a21602cf21..737cfbe288 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 98d1b1da41..45ac354a21 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-ospgateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 20270605ec..2179ea1c1c 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 59326a900e..a3286dd3a3 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 59ed9d279c..1afb2c2358 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osubsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 7ab1464aea..7d6ee7f1a1 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-osubusage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index ccb57dcea5..c85955d6ef 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 137f7a3036..96287e8bf0 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-queue @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java index 623b15613a..884f06def7 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java @@ -75,7 +75,7 @@ public interface Queue extends AutoCloseable { DeleteMessageResponse deleteMessage(DeleteMessageRequest request); /** - * Deletes multiple messages from the queue. + * Deletes multiple messages from the queue or the consumer group. Only messages from the same queue/consumer group can be deleted at once. * You must use the [messages endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) to delete messages. * The messages endpoint may be different for different queues. Use {@link #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * @@ -169,7 +169,7 @@ public interface Queue extends AutoCloseable { UpdateMessageResponse updateMessage(UpdateMessageRequest request); /** - * Updates multiple messages in the queue. + * Updates multiple messages in the queue or the consumer group. Only messages from the same queue/consumer group can be updated at once. * You must use the [messages endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) to update messages. * The messages endpoint may be different for different queues. Use {@link #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java index 135ba2f27e..98491ae0c0 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java @@ -77,7 +77,7 @@ java.util.concurrent.Future deleteMessage( handler); /** - * Deletes multiple messages from the queue. + * Deletes multiple messages from the queue or the consumer group. Only messages from the same queue/consumer group can be deleted at once. * You must use the [messages endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) to delete messages. * The messages endpoint may be different for different queues. Use {@link #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's `messagesEndpoint`. * @@ -186,7 +186,7 @@ java.util.concurrent.Future updateMessage( handler); /** - * Updates multiple messages in the queue. + * Updates multiple messages in the queue or the consumer group. Only messages from the same queue/consumer group can be updated at once. * You must use the [messages endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) to update messages. * The messages endpoint may be different for different queues. Use {@link #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's `messagesEndpoint`. * diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java index 7b36e36400..7690ba8250 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java @@ -26,6 +26,7 @@ public final class GetMessage extends com.oracle.bmc.http.internal.ExplicitlySet "deliveryCount", "visibleAfter", "expireAfter", + "createdAt", "metadata" }) public GetMessage( @@ -35,6 +36,7 @@ public GetMessage( Integer deliveryCount, java.util.Date visibleAfter, java.util.Date expireAfter, + java.util.Date createdAt, MessageMetadata metadata) { super(); this.id = id; @@ -43,6 +45,7 @@ public GetMessage( this.deliveryCount = deliveryCount; this.visibleAfter = visibleAfter; this.expireAfter = expireAfter; + this.createdAt = createdAt; this.metadata = metadata; } @@ -160,6 +163,28 @@ public Builder expireAfter(java.util.Date expireAfter) { this.__explicitlySet__.add("expireAfter"); return this; } + /** + * The time when message was created in queue. + *

+ * Example: {@code 2018-04-20T00:00:07.405Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdAt") + private java.util.Date createdAt; + + /** + * The time when message was created in queue. + *

+ * Example: {@code 2018-04-20T00:00:07.405Z} + * + * @param createdAt the value to set + * @return this builder + **/ + public Builder createdAt(java.util.Date createdAt) { + this.createdAt = createdAt; + this.__explicitlySet__.add("createdAt"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("metadata") private MessageMetadata metadata; @@ -182,6 +207,7 @@ public GetMessage build() { this.deliveryCount, this.visibleAfter, this.expireAfter, + this.createdAt, this.metadata); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -209,6 +235,9 @@ public Builder copy(GetMessage model) { if (model.wasPropertyExplicitlySet("expireAfter")) { this.expireAfter(model.getExpireAfter()); } + if (model.wasPropertyExplicitlySet("createdAt")) { + this.createdAt(model.getCreatedAt()); + } if (model.wasPropertyExplicitlySet("metadata")) { this.metadata(model.getMetadata()); } @@ -327,6 +356,26 @@ public java.util.Date getExpireAfter() { return expireAfter; } + /** + * The time when message was created in queue. + *

+ * Example: {@code 2018-04-20T00:00:07.405Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdAt") + private final java.util.Date createdAt; + + /** + * The time when message was created in queue. + *

+ * Example: {@code 2018-04-20T00:00:07.405Z} + * + * @return the value + **/ + public java.util.Date getCreatedAt() { + return createdAt; + } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") private final MessageMetadata metadata; @@ -354,6 +403,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", deliveryCount=").append(String.valueOf(this.deliveryCount)); sb.append(", visibleAfter=").append(String.valueOf(this.visibleAfter)); sb.append(", expireAfter=").append(String.valueOf(this.expireAfter)); + sb.append(", createdAt=").append(String.valueOf(this.createdAt)); sb.append(", metadata=").append(String.valueOf(this.metadata)); sb.append(")"); return sb.toString(); @@ -375,6 +425,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deliveryCount, other.deliveryCount) && java.util.Objects.equals(this.visibleAfter, other.visibleAfter) && java.util.Objects.equals(this.expireAfter, other.expireAfter) + && java.util.Objects.equals(this.createdAt, other.createdAt) && java.util.Objects.equals(this.metadata, other.metadata) && super.equals(other); } @@ -391,6 +442,7 @@ public int hashCode() { + (this.deliveryCount == null ? 43 : this.deliveryCount.hashCode()); result = (result * PRIME) + (this.visibleAfter == null ? 43 : this.visibleAfter.hashCode()); result = (result * PRIME) + (this.expireAfter == null ? 43 : this.expireAfter.hashCode()); + result = (result * PRIME) + (this.createdAt == null ? 43 : this.createdAt.hashCode()); result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java index 4035b19b60..5137a47825 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java @@ -565,6 +565,7 @@ public enum LifecycleState { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Inactive("INACTIVE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java index 899f40f95f..02a258daca 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java @@ -48,13 +48,13 @@ public Builder dlq(Stats dlq) { return this; } /** - * If channelId is presented in GetStats call, the channel id will be returned in the GetStats response. + * If channelId is present in GetStats call, the channel id will be returned in the GetStats response. **/ @com.fasterxml.jackson.annotation.JsonProperty("channelId") private String channelId; /** - * If channelId is presented in GetStats call, the channel id will be returned in the GetStats response. + * If channelId is present in GetStats call, the channel id will be returned in the GetStats response. * @param channelId the value to set * @return this builder **/ @@ -116,13 +116,13 @@ public Stats getDlq() { } /** - * If channelId is presented in GetStats call, the channel id will be returned in the GetStats response. + * If channelId is present in GetStats call, the channel id will be returned in the GetStats response. **/ @com.fasterxml.jackson.annotation.JsonProperty("channelId") private final String channelId; /** - * If channelId is presented in GetStats call, the channel id will be returned in the GetStats response. + * If channelId is present in GetStats call, the channel id will be returned in the GetStats response. * @return the value **/ public String getChannelId() { diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 7ba552355b..b8e10975ed 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-recovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index b03d5bf6fd..1734191fe9 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java index f1e7039e04..4a19d6fd4e 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java @@ -470,10 +470,7 @@ public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "CancelWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/CancelWorkRequest"); + "RedisCluster", "CancelWorkRequest", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -522,7 +519,7 @@ protected void beforeRetryAction() {} "RedisCluster", "ChangeRedisClusterCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/ChangeRedisClusterCompartment"); + ""); final java.util.function.Function< javax.ws.rs.core.Response, ChangeRedisClusterCompartmentResponse> transformer = @@ -574,10 +571,7 @@ public java.util.concurrent.Future createRedisCluste com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "CreateRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/CreateRedisCluster"); + "RedisCluster", "CreateRedisCluster", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = CreateRedisClusterConverter.fromResponse( @@ -625,10 +619,7 @@ public java.util.concurrent.Future deleteRedisCluste DeleteRedisClusterConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "DeleteRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/DeleteRedisCluster"); + "RedisCluster", "DeleteRedisCluster", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = DeleteRedisClusterConverter.fromResponse( @@ -671,10 +662,7 @@ public java.util.concurrent.Future getRedisCluster( GetRedisClusterConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "GetRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/GetRedisCluster"); + "RedisCluster", "GetRedisCluster", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetRedisClusterConverter.fromResponse( @@ -717,10 +705,7 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/GetWorkRequest"); + "RedisCluster", "GetWorkRequest", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -762,10 +747,7 @@ public java.util.concurrent.Future listRedisClusters( ListRedisClustersConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListRedisClusters", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisClusterSummary/ListRedisClusters"); + "RedisCluster", "ListRedisClusters", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListRedisClustersConverter.fromResponse( @@ -808,10 +790,7 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequestError/ListWorkRequestErrors"); + "RedisCluster", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -855,10 +834,7 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequestLogEntry/ListWorkRequestLogs"); + "RedisCluster", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -902,10 +878,7 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/ListWorkRequests"); + "RedisCluster", "ListWorkRequests", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -948,10 +921,7 @@ public java.util.concurrent.Future updateRedisCluste UpdateRedisClusterConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "UpdateRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/UpdateRedisCluster"); + "RedisCluster", "UpdateRedisCluster", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = UpdateRedisClusterConverter.fromResponse( diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java index 36508e0cf1..332bf4b1d4 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java @@ -561,10 +561,7 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "CancelWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/CancelWorkRequest"); + "RedisCluster", "CancelWorkRequest", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -604,7 +601,7 @@ public ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( "RedisCluster", "ChangeRedisClusterCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/ChangeRedisClusterCompartment"); + ""); java.util.function.Function< javax.ws.rs.core.Response, ChangeRedisClusterCompartmentResponse> transformer = @@ -645,10 +642,7 @@ public CreateRedisClusterResponse createRedisCluster(CreateRedisClusterRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "CreateRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/CreateRedisCluster"); + "RedisCluster", "CreateRedisCluster", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = CreateRedisClusterConverter.fromResponse( @@ -686,10 +680,7 @@ public DeleteRedisClusterResponse deleteRedisCluster(DeleteRedisClusterRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "DeleteRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/DeleteRedisCluster"); + "RedisCluster", "DeleteRedisCluster", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = DeleteRedisClusterConverter.fromResponse( @@ -724,10 +715,7 @@ public GetRedisClusterResponse getRedisCluster(GetRedisClusterRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "GetRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/GetRedisCluster"); + "RedisCluster", "GetRedisCluster", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetRedisClusterConverter.fromResponse( @@ -761,10 +749,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/GetWorkRequest"); + "RedisCluster", "GetWorkRequest", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -796,10 +781,7 @@ public ListRedisClustersResponse listRedisClusters(ListRedisClustersRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListRedisClusters", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisClusterSummary/ListRedisClusters"); + "RedisCluster", "ListRedisClusters", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListRedisClustersConverter.fromResponse( @@ -834,10 +816,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequestError/ListWorkRequestErrors"); + "RedisCluster", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -871,10 +850,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequestLogEntry/ListWorkRequestLogs"); + "RedisCluster", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -908,10 +884,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/WorkRequest/ListWorkRequests"); + "RedisCluster", "ListWorkRequests", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -945,10 +918,7 @@ public UpdateRedisClusterResponse updateRedisCluster(UpdateRedisClusterRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "RedisCluster", - "UpdateRedisCluster", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/redis/20220315/RedisCluster/UpdateRedisCluster"); + "RedisCluster", "UpdateRedisCluster", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = UpdateRedisClusterConverter.fromResponse( diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 2712697962..94398ad8bc 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-resourcemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 03012187c5..7e56304bf3 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java index da7287edfd..4234b5a999 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java @@ -472,7 +472,10 @@ public java.util.concurrent.Future activateSchedule( com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ActivateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "ActivateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ActivateSchedule"); final java.util.function.Function transformer = ActivateScheduleConverter.fromResponse( @@ -515,7 +518,10 @@ public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Schedule", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/CancelWorkRequest"); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -559,7 +565,10 @@ public java.util.concurrent.Future createSchedule( com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "CreateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "CreateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/CreateSchedule"); final java.util.function.Function transformer = CreateScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -607,7 +616,10 @@ public java.util.concurrent.Future deactivateSchedul com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "DeactivateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "DeactivateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeactivateSchedule"); final java.util.function.Function transformer = DeactivateScheduleConverter.fromResponse( @@ -650,7 +662,10 @@ public java.util.concurrent.Future deleteSchedule( DeleteScheduleConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "DeleteSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "DeleteSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeleteSchedule"); final java.util.function.Function transformer = DeleteScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -691,7 +706,10 @@ public java.util.concurrent.Future getSchedule( GetScheduleConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "GetSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "GetSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/GetSchedule"); final java.util.function.Function transformer = GetScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -733,7 +751,10 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Schedule", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -775,7 +796,10 @@ public java.util.concurrent.Future listResourceTypes( ListResourceTypesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListResourceTypes", ib.getRequestUri().toString(), ""); + "Schedule", + "ListResourceTypes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/ResourceTypeCollection/ListResourceTypes"); final java.util.function.Function transformer = ListResourceTypesConverter.fromResponse( @@ -817,7 +841,10 @@ public java.util.concurrent.Future listSchedules( ListSchedulesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListSchedules", ib.getRequestUri().toString(), ""); + "Schedule", + "ListSchedules", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ListSchedules"); final java.util.function.Function transformer = ListSchedulesConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -859,7 +886,10 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -903,7 +933,10 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -947,7 +980,10 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -990,7 +1026,10 @@ public java.util.concurrent.Future updateSchedule( UpdateScheduleConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "UpdateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "UpdateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/UpdateSchedule"); final java.util.function.Function transformer = UpdateScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java index db382f3b9e..64b99fabb4 100644 --- a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java @@ -563,7 +563,10 @@ public ActivateScheduleResponse activateSchedule(ActivateScheduleRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ActivateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "ActivateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ActivateSchedule"); java.util.function.Function transformer = ActivateScheduleConverter.fromResponse( @@ -598,7 +601,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Schedule", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/CancelWorkRequest"); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -634,7 +640,10 @@ public CreateScheduleResponse createSchedule(CreateScheduleRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "CreateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "CreateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/CreateSchedule"); java.util.function.Function transformer = CreateScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -671,7 +680,10 @@ public DeactivateScheduleResponse deactivateSchedule(DeactivateScheduleRequest r com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "DeactivateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "DeactivateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeactivateSchedule"); java.util.function.Function transformer = DeactivateScheduleConverter.fromResponse( @@ -706,7 +718,10 @@ public DeleteScheduleResponse deleteSchedule(DeleteScheduleRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "DeleteSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "DeleteSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeleteSchedule"); java.util.function.Function transformer = DeleteScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -739,7 +754,10 @@ public GetScheduleResponse getSchedule(GetScheduleRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "GetSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "GetSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/GetSchedule"); java.util.function.Function transformer = GetScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -771,7 +789,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Schedule", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -803,7 +824,10 @@ public ListResourceTypesResponse listResourceTypes(ListResourceTypesRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListResourceTypes", ib.getRequestUri().toString(), ""); + "Schedule", + "ListResourceTypes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/ResourceTypeCollection/ListResourceTypes"); java.util.function.Function transformer = ListResourceTypesConverter.fromResponse( @@ -837,7 +861,10 @@ public ListSchedulesResponse listSchedules(ListSchedulesRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListSchedules", ib.getRequestUri().toString(), ""); + "Schedule", + "ListSchedules", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ListSchedules"); java.util.function.Function transformer = ListSchedulesConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -870,7 +897,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -904,7 +934,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -938,7 +971,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Schedule", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -972,7 +1008,10 @@ public UpdateScheduleResponse updateSchedule(UpdateScheduleRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Schedule", "UpdateSchedule", ib.getRequestUri().toString(), ""); + "Schedule", + "UpdateSchedule", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/UpdateSchedule"); java.util.function.Function transformer = UpdateScheduleConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index ff4cf2104e..ba7cd2f827 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 6683c92a63..eeb87207ba 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-rover @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index ebb2b4699b..ea45d901d0 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-sch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 0601a3cfc7..55777edd2c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-secrets @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index ea7bb61dd0..29aa936735 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-servicecatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index f3ef6d2d1c..631c24bd06 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index b66d8a9fdc..51c31e4f23 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-servicemesh @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.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 3e0c6574eb..8674c830f3 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 942987d6a9..49c35488c3 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index ae6348183d..3249010e58 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryDetails.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryDetails.java index d85fe7e4dd..b5105a83fe 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryDetails.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryDetails.java @@ -230,6 +230,7 @@ public enum ResourceType { OracleGoldengate("ORACLE_GOLDENGATE"), CustomResource("CUSTOM_RESOURCE"), OracleHttpServer("ORACLE_HTTP_SERVER"), + MicrosoftIis("MICROSOFT_IIS"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryJobSummary.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryJobSummary.java index 4977701e83..814b999c76 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryJobSummary.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/DiscoveryJobSummary.java @@ -452,6 +452,7 @@ public enum ResourceType { OracleGoldengate("ORACLE_GOLDENGATE"), CustomResource("CUSTOM_RESOURCE"), OracleHttpServer("ORACLE_HTTP_SERVER"), + MicrosoftIis("MICROSOFT_IIS"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 9a8cad6b68..72300c3424 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-streaming @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index eb03476865..2e3c0f44e6 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 1d7b3e0e79..8bad420905 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-threatintelligence @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index c224cd9924..dd932802da 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-usage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 7f082c6824..02af3dfbc6 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-usageapi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 23e9381ff5..4681cc69c0 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-vault @@ -16,12 +16,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.72.0 + 2.73.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index fc425f8dad..45dfb11e8a 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-vbsinst @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index b24d6c09ce..ea8b9fa252 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-visualbuilder @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 247c6074a2..a386be9a66 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 30a3821a6d..cef7d66d59 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index f2593a83a1..34b2a014af 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-waa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index fb315e42b9..6698e6e674 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 93a092c401..3fb427a9c0 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-waf @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 478d092556..2413e6eae0 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 ../pom.xml oci-java-sdk-workrequests @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.72.0 + 2.73.0 diff --git a/pom.xml b/pom.xml index 79e465a970..bc88e8bf8e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 2.72.0 + 2.73.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -35,8 +35,8 @@ UTF-8 1.3.2 - 2.13.1 - 2.13.4.2 + 2.17.1 + 2.17.1 2.35 4.5.13 4.4.13 @@ -49,13 +49,13 @@ 1.7.1 0.10.4 - 3.1.1 + 3.5.0 + 2.19.1 1.70 1.10.19 1.7.4 2.6.1 0.9.2 - 9.24.2 1.3 2.0.0.0 **/*IntegrationAutoTest.java @@ -250,6 +250,20 @@ true + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + **/ConfigFileDelegationTokenUtilsTest.java + **/ConfigFileAuthenticationDetailsProviderTest.java + **/X509FederationClientTest.java + **/DefaultConfiguratorTest.java + **/RequestSignerImplTest.java + + + @@ -380,7 +394,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.19.1 + ${maven-surefire-plugin.version} ${excluded.testcases} @@ -408,12 +422,12 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.0.0-M3 + 3.3.0 org.codehaus.mojo extra-enforcer-rules - 1.3 + 1.7.0 @@ -497,11 +511,6 @@ - - com.nimbusds - nimbus-jose-jwt - ${nimbus.jose.jwt.version} - jakarta.ws.rs jakarta.ws.rs-api @@ -838,6 +847,7 @@ bmc-clusterplacementgroups bmc-marketplaceprivateoffer bmc-resourcescheduler + bmc-demandsignal bmc-full bmc-shaded